-
Notifications
You must be signed in to change notification settings - Fork 4
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
ba31a5d
commit 15fb057
Showing
2 changed files
with
107 additions
and
0 deletions.
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,79 @@ | ||
name: Build and run functional tests using ragger through reusable workflow | ||
|
||
# This workflow will Lint, Build and then Run tests. | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
- develop | ||
tags: | ||
- '*' | ||
pull_request: | ||
|
||
jobs: | ||
Build: | ||
strategy: | ||
matrix: | ||
os: [macos-latest, ubuntu-latest] | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- name: Install dependencies | ||
run: sudo apt update && sudo apt install -qy eslint | ||
if: runner.os == 'Linux' | ||
|
||
- name: Clone | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: node | ||
|
||
- name: Packages installation | ||
run: npm install | ||
|
||
- name: Compile | ||
run: npm run compile | ||
|
||
- name: Linter | ||
if: runner.os == 'Linux' | ||
run: npm run lint | ||
|
||
- name: Test with Linux | ||
if: runner.os == 'Linux' | ||
run: xvfb-run -a npm test | ||
|
||
- name: Test | ||
if: runner.os != 'Linux' | ||
run: npm test | ||
|
||
Build_Windows: | ||
strategy: | ||
matrix: | ||
os: [windows-latest] | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- name: Clone | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: node | ||
|
||
- name: Packages installation | ||
run: cmd.exe /c npm.cmd install | ||
|
||
- name: Compile | ||
run: cmd.exe /c npm.cmd run compile | ||
|
||
- name: Linter | ||
run: cmd.exe /c npm.cmd run lint | ||
|
||
- name: Test | ||
run: cmd.exe /c npm.cmd test | ||
|
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,28 @@ | ||
name: Misspellings checks | ||
|
||
# This workflow performs some misspelling checks on the repository | ||
# It is there to help us maintain a level of quality in our codebase and does not have to be kept on forked | ||
# applications. | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
- develop | ||
pull_request: | ||
|
||
jobs: | ||
misspell: | ||
name: Check misspellings | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Clone | ||
uses: actions/checkout@v4 | ||
|
||
- name: Check misspellings | ||
uses: codespell-project/actions-codespell@v2 | ||
with: | ||
builtin: clear,rare | ||
check_filenames: true | ||
skip: package-lock.json |