-
Notifications
You must be signed in to change notification settings - Fork 340
64 lines (62 loc) · 1.65 KB
/
main.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: QA
on:
pull_request:
types:
- synchronize
- opened
push:
branches:
- main
jobs:
lint:
runs-on: ubuntu-22.04
env:
HUSKY: 0
APL: file
MAILCHIMP_CLIENT_ID: "mocked"
MAILCHIMP_CLIENT_SECRET: "mocked"
steps:
- uses: actions/checkout@v4
- name: Setup PNPM
uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
with:
run_install: false
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "pnpm"
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Check linter
run: pnpm lint
- name: Check types
run: pnpm check-types
- name: Check package dependencies
run: pnpm lint:packages
- name: Check for changes in graphql files
run: |
pnpm generate
git diff --name-status --exit-code .
test:
runs-on: ubuntu-22.04
env:
HUSKY: 0
steps:
- uses: actions/checkout@v4
- name: Setup PNPM
uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
with:
run_install: false
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "pnpm"
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Run tests
run: pnpm test:ci
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@0da7aa657d958d32c117fc47e1f977e7524753c7 # v5.3.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: saleor/apps