Skip to content

Commit

Permalink
blacksmith.sh: Migrate workflows to Blacksmith (#1997)
Browse files Browse the repository at this point in the history
Co-authored-by: blacksmith-sh[bot] <157653362+blacksmith-sh[bot]@users.noreply.github.com>
  • Loading branch information
blacksmith-sh[bot] authored Dec 29, 2024
1 parent 6b3e3cb commit 9775cb0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/Build and test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ on:

jobs:
Build:
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v4
- name: Bulid from src
uses: actions/setup-node@v4
uses: useblacksmith/setup-node@v5
with:
node-version: '20.x'
- run: yarn install --frozen-lockfile
Expand All @@ -29,14 +29,14 @@ jobs:

test_node:
needs: Build
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2204
strategy:
matrix:
node-version: [15.x, 16.x, 17.x, 18.x, 19.x, latest]
steps:
- uses: actions/checkout@v4
- name: Run prod version with Node v${{ matrix.node-version }}
uses: actions/setup-node@v4
uses: useblacksmith/setup-node@v5
with:
node-version: ${{ matrix.node-version }}
- uses: actions/download-artifact@master
Expand All @@ -52,7 +52,7 @@ jobs:

test_browser:
needs: Build
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@master
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
# - https://gh.io/supported-runners-and-hardware-resources
# - https://gh.io/using-larger-runners
# Consider using larger runners for possible analysis time improvements.
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'blacksmith-4vcpu-ubuntu-2204' }}
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
permissions:
actions: read
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scorecard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ permissions: read-all
jobs:
analysis:
name: Scorecard analysis
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2204
permissions:
# Needed to upload the results to code-scanning dashboard.
security-events: write
Expand Down

0 comments on commit 9775cb0

Please sign in to comment.