-
Notifications
You must be signed in to change notification settings - Fork 2
49 lines (45 loc) · 1.16 KB
/
ci.yml
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
43
44
45
46
47
48
49
name: ci
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.2.2
- uses: pnpm/action-setup@v4.0.0
with:
run_install: true
- uses: actions/setup-node@v4.1.0
with:
node-version-file: .node-version
cache: pnpm
- name: build
run: |
pnpm build
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.2.2
- uses: pnpm/action-setup@v4.0.0
with:
run_install: true
- uses: actions/setup-node@v4.1.0
with:
node-version-file: .node-version
cache: pnpm
- name: test
run: |
pnpm test:ci
slack-notify:
if: always()
needs: [build, test]
name: post slack
runs-on: ubuntu-latest
steps:
- uses: Gamesight/slack-workflow-status@v1.3.0
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }}
- uses: swfz/failed-log-to-slack-action@v1.1.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }}