Skip to content

Commit

Permalink
test new setup for checks
Browse files Browse the repository at this point in the history
  • Loading branch information
mimarz committed Jul 31, 2024
1 parent 751943b commit 25c4cd1
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 15 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/check-storefront.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Checks Storefront
name: Build Storefront
on:
workflow_dispatch:
pull_request:
Expand All @@ -22,9 +22,4 @@ jobs:
run: yarn build
- name: Build storefront
run: yarn build:storefront
- name: Types
run: yarn types:storefront
- name: Biome CI
run: yarn biome ci ./apps/storefront
- name: Lint CSS
run: yarn lint-style ./apps/storefront/**/*.css

8 changes: 1 addition & 7 deletions .github/workflows/checks-packages.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Checks Packages
name: Builds & Test Packages
on:
workflow_dispatch:
pull_request:
Expand All @@ -13,11 +13,5 @@ jobs:
- uses: ./.github/actions/gh-setup
- name: Build
run: yarn build
- name: Types
run: yarn types:react
- name: Biome CI
run: yarn biome ci .
- name: Lint CSS
run: yarn lint-style
- name: Test
run: yarn test
23 changes: 23 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Checks
on:
workflow_dispatch:
pull_request:
paths:
- 'packages/**'
- 'apps/**'
- 'biome.jsonc'
jobs:
checks:
name: Builds, lints and tests code
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/gh-setup
- name: Types
run: yarn types:react
- name: Biome CI
run: yarn biome ci .
- name: Lint CSS
run: yarn lint-style
- name: Test
run: yarn test
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
"build:devsite": "yarn workspace dev building",
"start:storefront": "yarn workspace storefront start",
"lint-style": "stylelint \"**/*.css\"",
"lint-style:fix": "yarn run lint-style --fix",
"types": "yarn workspaces foreach -Ap --topological-dev --no-private run types",
"types:react": "yarn workspace @digdir/designsystemet-react types",
"types:storefront": "yarn workspace storefront types",
Expand Down

0 comments on commit 25c4cd1

Please sign in to comment.