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

58 lines
1.0 KiB
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
2023-10-25 23:04:54 +02:00
- uses: pnpm/action-setup@v2
with:
version: 8
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
2023-09-01 15:27:55 +02:00
cache: 'pnpm'
2023-10-25 23:04:54 +02:00
2023-09-01 15:27:55 +02:00
- name: Install pnpm packages
run: pnpm install
2022-12-27 15:08:03 +01:00
2023-03-19 20:22:44 +01:00
- name: Run ESLint
2023-09-01 15:27:55 +02:00
run: pnpm run lint
2023-03-10 19:17:11 +01:00
building:
name: Build project
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
2023-10-25 23:04:54 +02:00
- uses: pnpm/action-setup@v2
with:
version: 8
2023-03-10 19:17:11 +01:00
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18
2023-09-01 15:27:55 +02:00
cache: 'pnpm'
2023-03-10 19:17:11 +01:00
2023-09-01 15:27:55 +02:00
- name: Install pnpm packages
run: pnpm install
2023-03-10 19:17:11 +01:00
- name: Build Project
2023-09-01 15:27:55 +02:00
run: pnpm run build