Skip to content

Commit

Permalink
ci: move git user initialization to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
privatenumber committed Jan 29, 2023
1 parent 9f98387 commit a5c098b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,6 @@ jobs:
- name: Lint
run: pnpm lint

- name: Setup Git
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "<>"
- name: Build
run: pnpm build

Expand Down
3 changes: 3 additions & 0 deletions tests/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ describe('git-publish', ({ describe, test }) => {
});

test('Publishes', async ({ onTestFail }) => {
await execa('git', ['config', 'user.name', 'GitHub Actions']);
await execa('git', ['config', 'user.email', '<>']);

const gitPublishProcess = await execa(gitPublish, {
reject: false,
});
Expand Down

0 comments on commit a5c098b

Please sign in to comment.