Skip to content

Commit

Permalink
1st CI workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
cedelavergne-ledger committed Apr 30, 2024
1 parent ba31a5d commit 15fb057
Show file tree
Hide file tree
Showing 2 changed files with 107 additions and 0 deletions.
79 changes: 79 additions & 0 deletions .github/workflows/build_and_functional_tests.yml
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

28 changes: 28 additions & 0 deletions .github/workflows/misspellings_checks.yml
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

0 comments on commit 15fb057

Please sign in to comment.