fix lint issues and bump version to 3.1.4 (#24) #59
Workflow file for this run
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: IST Simulator - CI | |
on: | |
push: | |
tags: | |
- "v*.*.*" | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup | Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Setup | Python 3.10 | |
uses: actions/[email protected] | |
with: | |
python-version: '3.10' | |
- name: Setup | toml | |
uses: BSFishy/pip-action@v1 | |
with: | |
packages: | | |
toml | |
- name: Setup | Node Install | |
run: npm ci | |
- name: Lint | |
run: | | |
npm run lint-base | |
npm run layer | |
npm run lint-ts | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup | Checkout | |
uses: actions/checkout@v3 | |
- name: Setup | Node Install | |
run: npm ci | |
- name: Test | |
run: npm run test-all -- --watchAll=false | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup | Checkout | |
uses: actions/checkout@v3 | |
- name: Setup | Node Install | |
run: npm ci | |
- name: Build | React Build | |
run: npm run build | |
- name: Build | Upload Artifact | |
uses: actions/[email protected] | |
with: | |
path: build | |
retention-days: 30 | |
deploy: | |
name: Deploy | |
needs: | |
- build | |
- test | |
if: github.event_name != 'pull_request' && startsWith(github.ref, 'refs/tags/v') | |
permissions: | |
pages: write | |
id-token: write | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Deploy | GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v1 |