-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (35 loc) · 989 Bytes
/
pr.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
name: Run tests
on:
pull_request:
jobs:
tests:
runs-on: ubuntu-latest
environment: production
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20.x"
cache: "npm"
- name: Install dependencies
run: npm ci --no-audit
- name: Compile TypeScript
run: npx tsc
- name: Check source code with eslint
run: npx eslint ./
- name: Check if source code is properly formatted
run: npx prettier -c ./
- name: Run tests
run: npm test
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run end to end tests
env:
REGISTRY_ENDPOINT: ${{ vars.REGISTRY_ENDPOINT }}
run: npm run test:e2e
- name: Build
env:
VERSION: ${{ github.sha }}
REGISTRY_ENDPOINT: ${{ vars.REGISTRY_ENDPOINT }}
run: |
npm run build