Skip to content

Merge pull request #18 from PapillonApp/dev #37

Merge pull request #18 from PapillonApp/dev

Merge pull request #18 from PapillonApp/dev #37

Workflow file for this run

name: Checks
on:
push:
branches: [ "main" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "main" ]
jobs:
eslint:
name: Code property check (eslint)
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Environnement
run: npm install
- name: Run ESLint
run: npm run lint
build:
name: Code builds check (tsc)
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Environnement
run: npm install
- name: Retrieve submodules
run: git submodule update --init --recursive
- name: Build code
run: npm run build:solo
# tests:
# name: Execute jest tests
# runs-on: ubuntu-latest
# permissions:
# contents: read
# security-events: write
# actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
# steps:
# - name: Checkout code
# uses: actions/checkout@v3
#
# - name: Setup Environnement
# run: npm install
#
# - name: Run test script
# run: npm run test