Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
84 changes: 84 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
name: QA
permissions:
contents: read

on:
push:
branches: [main]
pull_request:
types: [opened, synchronize, reopened]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
check-lock:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4

- name: Validate lock file
run: npx lockfile-lint --path package-lock.json --allowed-hosts npm yarn

tsc-and-linters:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "npm"

- name: Install deps
run: npm ci

- name: Run tsc
run: npm run check-types

- name: Run lint
run: npm run lint

- name: Check for uncommitted lint changes
run: git diff --exit-code ./src

- name: Check Prettier formatting
run: npm run format:check

jest-tests:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "npm"

- name: Install deps
run: npm ci

- name: Run tests
run: npm run test:ci

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: saleor/saleor-dashboard

translation-messages:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "npm"

- name: Install deps
run: npm ci

- name: Check message extraction
run: |
npm run extract-messages
git diff --exit-code ./locale
2 changes: 1 addition & 1 deletion .github/workflows/pr-automation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
default: 2 # This is the default only for manually (re-)triggered runs. Default for runs triggered by pull requests is configured via `jobs.initialize-cloud.generate-shard-matrix.env.CONCURRENCY`.

concurrency:
group: ${{ github.ref }}
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/run-test-manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Run test manually
on: [workflow_dispatch]

concurrency:
group: ${{ github.ref }}
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
Expand Down
120 changes: 0 additions & 120 deletions .github/workflows/test.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20
20.19
11 changes: 11 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,22 @@
coverage:
status:
patch:
default:
target: auto
project:
default:
target: auto

ignore:
- "src/graphql/**"
- "./src/**/queries.ts"
- "./src/**/mutations.ts"
- "./src/**/fragments/*.ts"
- "./src/searches/*.ts"
- ".featureFlags/**"
- "testUtils/**"
- "assets/**"
- "lint/**"
- "scripts/**"
- "**/*.config.js"
- "**/*.config.ts"
Loading