-
Notifications
You must be signed in to change notification settings - Fork 22
43 lines (35 loc) · 1.09 KB
/
test-pr.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
name: Test PR
on:
pull_request:
types: ['opened', 'synchronize']
env:
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
AWS_REGION: ${{secrets.AWS_REGION}}
CODACY_PROJECT_TOKEN: ${{secrets.CODACY_PROJECT_TOKEN}}
CI: true
jobs:
test-pr:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set Node
uses: actions/setup-node@v3
with:
node-version: '18.x'
- name: Install
run: yarn
- name: Fetch config
run: |
yarn workspaces foreach --parallel --verbose --since --recursive run conf --name development
- name: Test
run: |
yarn workspaces foreach --parallel --verbose --interlaced --since --recursive run test --watch=false --ci --forceExit --detectOpenHandles --runInBand --passWithNoTests --coverage
- name: Codacy
run: |
bash <(curl -Ls https://coverage.codacy.com/get.sh)