Skip to content

Commit

Permalink
fix: upgrade workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickHeneise committed Jan 27, 2024
1 parent b0b65f9 commit 05fd2bf
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- run: npm test
- run: npm run build
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
fetch-depth: 0
node-version: 20
- run: npm ci
- run: npm run lint
- run: npm test
4 changes: 2 additions & 2 deletions test/issues.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ test('issues() should check for code-of-conduct and return instructions', async

await issues(octokit, issueOpened, core)
expect(octokit.rest.issues.createComment).toHaveBeenCalledWith({
body: 'Thanks for your proposal!\n\nThis group follows a Code of Conduct. In order to proceed, you need to read and agree to our [Code of Conduct](./blob/main/CODE_OF_CONDUCT.md).\n',
body: 'Thanks for your proposal!\n\nThis group follows a Code of Conduct. In order to proceed, you need to read and agree to our [Code of Conduct](./blob/main/CODE_OF_CONDUCT.md).',
issue_number: 16,
owner: 'gitevents',
repo: 'action'
Expand All @@ -24,7 +24,7 @@ test('issues() should check for code-of-conduct and return instructions', async

test.skip('issues() should check for code-of-conduct', async () => {
issueOpened.payload.issue.body =
"- [x] I've read and agree to the [Code of Conduct](./blob/main/CODE_OF_CONDUCT.md)\n"
"- [x] I've read and agree to the [Code of Conduct](./blob/main/CODE_OF_CONDUCT.md)"
const octokit = {
rest: { issues: { createComment: vi.fn() } }
}
Expand Down

0 comments on commit 05fd2bf

Please sign in to comment.