Skip to content

Commit

Permalink
Fix integration tests on GitHub Actions (#584)
Browse files Browse the repository at this point in the history
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
  • Loading branch information
bunysae and sindresorhus committed Dec 19, 2020
1 parent 6b410d7 commit 9817261
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,12 @@ jobs:
- 10
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: git config --global user.name "Github Actions"
- run: git config --global user.email "actions@users.noreply.github.com"
- run: npm install
- run: npm test
2 changes: 1 addition & 1 deletion integration-test
2 changes: 1 addition & 1 deletion test/integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ test.after.always(async () => {
});

test('Integration tests', async t => {
await execa('ava', {cwd: 'integration-test'});
await execa('npx', ['ava'], {cwd: 'integration-test'});
t.pass();
});

0 comments on commit 9817261

Please sign in to comment.