-
Notifications
You must be signed in to change notification settings - Fork 5
72 lines (57 loc) · 1.4 KB
/
ci.yml
File metadata and controls
72 lines (57 loc) · 1.4 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: test
on:
workflow_call:
inputs:
environment:
required: false
type: string
secrets:
ENV:
required: false
SSH_DEPLOY_KEY:
required: false
permissions:
contents: read
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
jobs:
ci:
name: Test
runs-on: ubuntu-latest
environment: ${{ inputs.environment }}
steps:
- name: Check Out Code
uses: actions/checkout@v3
- name: Use Node 22
uses: actions/setup-node@v3
with:
node-version: 22
# - name: Create Dotenv File
# run: |
# echo "${{ secrets.ENV }}" > .env
- name: Run Install
uses: borales/actions-yarn@v4
with:
cmd: install
- name: Run ESLint
uses: borales/actions-yarn@v4
with:
cmd: lint
- name: Run TypeScript Check
uses: borales/actions-yarn@v4
with:
cmd: ts
- name: Run Unit Tests
uses: borales/actions-yarn@v4
with:
cmd: test
- name: Install Chrome
uses: browser-actions/setup-chrome@v1
- name: Build chrome
uses: borales/actions-yarn@v4
with:
cmd: build:chrome
- name: Install Playwright Browsers
run: npx playwright install --with-deps chromium
- name: Run Playwright E2E
run: xvfb-run -a yarn test:e2e