Skip to content

Commit

Permalink
ci: Try macos ARM
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmillr committed Jan 16, 2025
1 parent 1c62fda commit 80219ff
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/test-js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
jobs:
bun:
name: Bun
runs-on: ubuntu-24.04-arm
runs-on: macos-latest
steps:
- uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2 # v4
- uses: oven-sh/setup-bun@4bc047ad259df6fc24a6c9b0f9a0cb08cf17fbe5 # v2.0.1
Expand All @@ -14,7 +14,7 @@ jobs:
- run: bun test/index.js
deno:
name: Deno
runs-on: ubuntu-24.04-arm
runs-on: macos-latest
steps:
- uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2 # v4
- uses: denoland/setup-deno@909cc5acb0fdd60627fb858598759246509fa755 # v2.0.2
Expand All @@ -23,7 +23,7 @@ jobs:
- run: deno --allow-env --allow-read --import-map=./test/import_map.json test/index.js
lint:
name: Lint
runs-on: ubuntu-24.04-arm
runs-on: macos-latest
steps:
- uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2 # v4
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4
Expand All @@ -35,24 +35,24 @@ jobs:
- run: npm run lint --if-present
node:
name: Node v${{ matrix.node }}
runs-on: ubuntu-24.04-arm
runs-on: macos-latest
strategy:
matrix:
node: [18, 20, 22]
node: [18.20.5, 20.18.1, 22.13.0] # Hardcoded versions are more secure
steps:
- uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2 # v4
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4
with:
node-version: ${{ matrix.node }}
registry-url: 'https://registry.npmjs.org'
cache: npm
node-version: ${{ matrix.node }}
- run: npm install
- run: npm run build --if-present
- run: npm test
coverage:
name: Measure coverage on Node
runs-on: ubuntu-24.04-arm
runs-on: macos-latest
steps:
- uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2 # v4
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4
Expand Down

0 comments on commit 80219ff

Please sign in to comment.