-
Notifications
You must be signed in to change notification settings - Fork 12
38 lines (30 loc) · 961 Bytes
/
ci.yml
File metadata and controls
38 lines (30 loc) · 961 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
36
37
38
name: Continuous Integration
on:
pull_request:
jobs:
lint-and-test:
name: "Lint and Test"
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- name: Harden the runner
uses: step-security/harden-runner@95d9a5deda9de15063e7595e9719c11c38c90ae2 # v2.13.2
with:
egress-policy: block
policy: global-allowed-endpoints-policy
- name: Check out repository code
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
- name: Install Node
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
- name: Install Dependencies
run: yarn install
- name: Run Linter
run: yarn lint
- name: Run Build
run: yarn build
- name: Run Unit Tests
run: yarn test
scan:
needs: lint-and-test
uses: circlefin/circle-public-github-workflows/.github/workflows/pr-scan.yaml@v1