-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (35 loc) · 1.08 KB
/
main.yaml
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
36
37
38
39
40
41
42
name: test
on:
push:
branches-ignore: ['main']
jobs:
test:
runs-on: ubuntu-24.04
steps:
- name: checkout
uses: actions/checkout@v4
- name: node 20
uses: actions/setup-node@v4
with:
node-version: 20
- name: build
env:
NODE_ENV: development
run: |
npm ci && npm run build
- name: check
run: |
npm run check
- name: lint
run: |
npm run lint
- name: Approve PR
if: github.actor == 'renovate[bot]'
run: gh pr review ${{ github.event.pull_request.number }} --approve
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Merge PR
if: github.actor == 'renovate[bot]'
run: gh pr merge ${{ github.event.pull_request.number }} --merge
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}