movie-web/.github/workflows/linting_testing.yml

39 lines
771 B
YAML
Raw Normal View History

2022-12-27 15:08:03 +01:00
name: Linting and Testing
on:
push:
branches:
- master
- dev
2023-03-10 19:10:08 +01:00
pull_request:
2022-12-27 15:08:03 +01:00
jobs:
linting:
name: Run Linters
runs-on: ubuntu-latest
steps:
- name: Checkout code
2023-01-19 04:56:25 +01:00
uses: actions/checkout@v3
2022-12-27 15:08:03 +01:00
- name: Install Node.js
2023-01-19 04:56:25 +01:00
uses: actions/setup-node@v3
2022-12-27 15:08:03 +01:00
with:
2023-01-19 04:56:25 +01:00
node-version: 18
2022-12-27 15:08:03 +01:00
- name: Install Yarn packages
run: yarn install
2023-03-10 19:10:08 +01:00
- name: Build Project
run: npm run build
2022-12-27 15:08:03 +01:00
- name: Run ESLint Report
run: yarn lint:report
# continue on error, so it still reports it in the next step
continue-on-error: true
2023-03-10 19:10:08 +01:00
- uses: actions/upload-artifact@v2
2022-12-27 15:08:03 +01:00
with:
2023-03-10 19:10:08 +01:00
name: eslint_report.zip
path: eslint_report.json