Skip to content

Commit 3bc3836

Browse files
authored
test: use ubuntu-24.04-arm for testing linux aarch64 gnu binding (#95)
1 parent 429e0d6 commit 3bc3836

File tree

2 files changed

+4
-15
lines changed

2 files changed

+4
-15
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ jobs:
317317
node:
318318
- '18'
319319
- '20'
320-
runs-on: ubuntu-latest
320+
runs-on: ubuntu-24.04-arm
321321
steps:
322322
- uses: actions/checkout@v4
323323
- name: Download artifacts
@@ -333,16 +333,5 @@ jobs:
333333
yarn config set supportedArchitectures.cpu "arm64"
334334
yarn config set supportedArchitectures.libc "glibc"
335335
yarn install
336-
- name: Set up QEMU
337-
uses: docker/setup-qemu-action@v3
338-
with:
339-
platforms: arm64
340-
- run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
341-
- name: Setup and run tests
342-
uses: addnab/docker-run-action@v3
343-
with:
344-
image: node:${{ matrix.node }}-slim
345-
options: '--user 0:0 --platform linux/arm64 -v ${{ github.workspace }}:/build -w /build'
346-
run: |
347-
set -e
348-
yarn vitest run
336+
- name: Test bindings
337+
run: yarn vitest run

tests/repository.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ describe('Repository', () => {
4141

4242
it('error if given path is not git repository', async () => {
4343
const p = await useFixture('notgit');
44-
await expect(openRepository(p)).rejects.toThrowError();
44+
await expect(openRepository(p, { noSearch: true })).rejects.toThrowError();
4545
});
4646

4747
it('clone from local', async () => {

0 commit comments

Comments
 (0)