Merge pull request #17 from PapillonApp/dev #34
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
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 |