-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e7656fc
commit a3687ca
Showing
3 changed files
with
291 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Frontend CI | ||
|
||
on: | ||
pull_request: ~ | ||
|
||
push: | ||
branches: | ||
- "main" | ||
- "hotfix/**" | ||
|
||
workflow_dispatch: | ||
inputs: | ||
debug_enabled: | ||
type: boolean | ||
description: "Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)" | ||
required: false | ||
default: false | ||
|
||
env: | ||
NEXT_PUBLIC_ENV: local | ||
NODE_OPTIONS: --max_old_space_size=4096 | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: "npm" | ||
- run: npm ci | ||
- run: npm run lint | ||
|
||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
- run: npm ci | ||
- name: Run unit/integration test | ||
run: npm run coverage | ||
- name: Setup tmate session for debugging | ||
uses: mxschmitt/action-tmate@v3 | ||
if: ${{ failure() && inputs.debug_enabled }} | ||
- name: Upload unit/integration tests coverage | ||
uses: codecov/codecov-action@v4 | ||
with: | ||
files: coverage/clover.xml | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
- name: Clean coverage | ||
run: rm -rf coverage |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters