Skip to content

Commit

Permalink
ci: try fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fz6m committed Jan 30, 2024
1 parent 0ae8792 commit 072a226
Show file tree
Hide file tree
Showing 3 changed files with 247 additions and 496 deletions.
21 changes: 7 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,6 @@ jobs:
node: ["18"]
runs-on: ubuntu-latest
steps:
- run: docker run --rm --privileged multiarch/qemu-user-static:register --reset
- uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
Expand All @@ -265,25 +264,19 @@ jobs:
- name: List packages
run: ls -R .
shell: bash
- name: Get pnpm version
uses: actions/github-script@v7
id: pnpm-version
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
result-encoding: string
script: |
const packageJson = require('./package.json')
const pnpmVersion = packageJson.packageManager.split('@')[1]
console.log(`Use pnpm ${pnpmVersion}`)
return pnpmVersion
platforms: arm64
- run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
- name: Setup and run tests
uses: addnab/docker-run-action@v3
with:
image: multiarch/alpine:aarch64-latest-stable
options: "-v ${{ github.workspace }}:/build -w /build"
image: node:${{ matrix.node }}
options: "--platform linux/arm64 -v ${{ github.workspace }}:/build -w /build"
run: |
set -e
apk add nodejs npm
npm install -g @pnpm/exe@${{ steps.pnpm-version.outputs.result }}
npm install -g pnpm
pnpm i
pnpm test
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@
"@napi-rs/cli": "^2.18.0",
"@types/lodash": "^4.14.202",
"@types/node": "^20.11.10",
"@vitest/ui": "^1.2.2",
"@xn-sakina/mental": "^4.2.1",
"@xn-sakina/vary": "^1.4.0",
"es-module-lexer": "^1.4.1",
Expand All @@ -76,7 +75,7 @@
"rs-module-lexer": "link:./",
"tsx": "^4.7.0",
"typescript": "^5.3.3",
"vitest": "^1.2.2",
"vitest": "0.29.8",
"zx": "^7.2.3"
},
"packageManager": "[email protected]",
Expand Down
Loading

0 comments on commit 072a226

Please sign in to comment.