-
Notifications
You must be signed in to change notification settings - Fork 64
56 lines (55 loc) · 1.52 KB
/
checks.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Checks
on:
workflow_dispatch:
pull_request:
branches:
- develop
paths:
- 'packages/eds-core-react/**'
- 'packages/eds-lab-react/**'
- 'packages/eds-data-grid-react/**'
- 'packages/eds-tokens/**'
- 'packages/eds-icons/**'
push:
branches:
- develop
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
jobs:
setup:
uses: equinor/design-system/.github/workflows/_setup.yml@develop
secrets: inherit
with:
cacheKey: ${{ github.sha }}
checkout_paths: packages/eds-core-react packages/eds-tokens packages/eds-icons packages/eds-lab-react packages/eds-data-grid-react packages/eds-utils
packages:
name: Process packages
runs-on: ubuntu-latest
needs: setup
steps:
- name: Use "setup" cache
id: setup-cache
uses: actions/cache@v3
with:
path: |
./*
~/.pnpm-store
key: ${{ github.sha }}
- name: Build packages
id: build-packages
run: node_modules/.bin/pnpm run build
- name: Test packages
id: test-packages
run: node_modules/.bin/pnpm run test
- name: Lint packages
id: lint-packages
run: node_modules/.bin/pnpm run lint:all
- name: Type check packages
id: type-check-packages
run: node_modules/.bin/pnpm run types
- name: log-errors-to-slack
uses: act10ns/slack@v2
with:
status: ${{ job.status }}
steps: ${{ toJson(steps) }}
if: failure()