-
Notifications
You must be signed in to change notification settings - Fork 1
65 lines (54 loc) · 1.65 KB
/
ci.yml
File metadata and controls
65 lines (54 loc) · 1.65 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
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-22.04
container: "mcr.microsoft.com/playwright:v1.42.1-jammy"
strategy:
matrix:
node-version: [20.9.0]
app-name: [react-nextjs, slashid-remix-impl]
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
node-version-file: ".nvmrc"
registry-url: "https://registry.npmjs.org/"
- name: Install dependencies
run: pnpm install
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Check types
run: pnpm test:types
- name: Lint
run: pnpm lint
- name: Build
run: pnpm build
- name: Unit tests
run: pnpm test:unit
# - name: Run E2E tests
# env:
# CI: true
# MAILOSAUR_API_KEY: ${{ secrets.MAILOSAUR_API_KEY }}
# MAILOSAUR_SERVER_ID: ${{ secrets.MAILOSAUR_SERVER_ID }}
# E2E_SID_API_URL: ${{ secrets.E2E_SID_API_URL }}
# E2E_SID_API_KEY: ${{ secrets.E2E_SID_API_KEY }}
# E2E_SID_ORG_ID: ${{ secrets.E2E_SID_ORG_ID }}
# APP_NAME: ${{ matrix.app-name }}
# run: pnpm test:e2e --filter tests
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report-${{ matrix.app-name }}
path: packages/tests/playwright-report/
retention-days: 10