forked from sussy-code/providers
-
Notifications
You must be signed in to change notification settings - Fork 15
42 lines (32 loc) · 788 Bytes
/
tests.yml
File metadata and controls
42 lines (32 loc) · 788 Bytes
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
name: Testing
on:
pull_request:
push:
branches:
- master
- dev
jobs:
testing:
name: Testing
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- uses: pnpm/action-setup@v3
with:
version: 8
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
- name: Install packages
run: pnpm install --frozen-lockfile
- name: Install puppeteer
run: node ./node_modules/puppeteer/install.mjs
- name: Run tests
run: pnpm run test
- name: Run integration tests
run: pnpm run build && pnpm run test:integration
- name: Run linting
run: pnpm run lint