Skip to content

Commit

Permalink
ci: move git author to actions
Browse files Browse the repository at this point in the history
  • Loading branch information
privatenumber committed Mar 20, 2023
1 parent ed06ac8 commit 2d0fa98
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ jobs:
- name: Lint
run: pnpm lint

- name: Setup Git # Only used by the last test
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "<>"
- name: Build
run: pnpm build

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

test('Publishes', async ({ onTestFail }) => {
await execa('git', ['config', 'user.name', 'GitHub Actions']);
await execa('git', ['config', 'user.email', '<>']);
// Requires git config author to be set
// This is set on the GitHub Action because locally, an author already exists

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

0 comments on commit 2d0fa98

Please sign in to comment.