-
Notifications
You must be signed in to change notification settings - Fork 17
35 lines (35 loc) · 906 Bytes
/
test.yml
File metadata and controls
35 lines (35 loc) · 906 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Test
"on":
push: {}
pull_request:
types:
- opened
- synchronize
jobs:
integration:
runs-on: ubuntu-latest
if: github.event_name == 'pull_request' || github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v6
with:
cache: npm
node-version: 18
- run: npm ci
- run: npm test
createComment:
runs-on: ubuntu-latest
permissions:
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
if: github.event_name == 'push'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v6
with:
cache: npm
node-version: 18
- run: npm ci
- run: node test/fixtures/app.js
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}