-
Notifications
You must be signed in to change notification settings - Fork 59
43 lines (42 loc) · 1.12 KB
/
ci.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: CI
on:
- push
jobs:
test:
name: 🔍 Testing
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v3
- name: ⎔ Setup node
uses: actions/setup-node@v3
with:
node-version: 18
- name: 📥 Download deps
uses: bahmutov/npm-install@v1
with:
useLockFile: false
- name: 🎭 Install Playwright
run: npx playwright install --with-deps
- name: 📦 Prepare the environment
run: cp wrangler.toml.example wrangler.toml
- name: 💣 Run some tests
run: npx playwright test
lint:
name: ⬣ Linting
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v3
- name: ⎔ Setup node
uses: actions/setup-node@v3
with:
node-version: 18
- name: 📥 Download deps
uses: bahmutov/npm-install@v1
with:
useLockFile: false
- name: ✨ Code format check
run: npx prettier --check .
- name: ✅ Code linting
run: npx eslint . --ext .js,.mjs,.ts,.tsx