2022-12-27 14:08:03 +00:00
|
|
|
name: Linting and Testing
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- dev
|
2023-03-10 18:10:08 +00:00
|
|
|
pull_request:
|
2022-12-27 14:08:03 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
linting:
|
|
|
|
name: Run Linters
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
2024-01-07 13:08:01 +00:00
|
|
|
uses: actions/checkout@v4
|
2023-10-25 21:04:54 +00:00
|
|
|
|
|
|
|
- uses: pnpm/action-setup@v2
|
|
|
|
with:
|
|
|
|
version: 8
|
|
|
|
|
2022-12-27 14:08:03 +00:00
|
|
|
- name: Install Node.js
|
2024-01-07 13:08:01 +00:00
|
|
|
uses: actions/setup-node@v4
|
2022-12-27 14:08:03 +00:00
|
|
|
with:
|
2024-01-07 13:08:01 +00:00
|
|
|
node-version: 20
|
2023-09-01 13:27:55 +00:00
|
|
|
cache: 'pnpm'
|
2023-10-25 21:04:54 +00:00
|
|
|
|
2023-09-01 13:27:55 +00:00
|
|
|
- name: Install pnpm packages
|
|
|
|
run: pnpm install
|
2022-12-27 14:08:03 +00:00
|
|
|
|
2023-03-19 19:22:44 +00:00
|
|
|
- name: Run ESLint
|
2023-09-01 13:27:55 +00:00
|
|
|
run: pnpm run lint
|
2023-03-10 18:17:11 +00:00
|
|
|
|
|
|
|
building:
|
|
|
|
name: Build project
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
2024-01-07 13:08:01 +00:00
|
|
|
uses: actions/checkout@v4
|
2023-03-10 18:17:11 +00:00
|
|
|
|
2023-10-25 21:04:54 +00:00
|
|
|
- uses: pnpm/action-setup@v2
|
|
|
|
with:
|
|
|
|
version: 8
|
|
|
|
|
2023-03-10 18:17:11 +00:00
|
|
|
- name: Install Node.js
|
2024-01-07 13:08:01 +00:00
|
|
|
uses: actions/setup-node@v4
|
2023-03-10 18:17:11 +00:00
|
|
|
with:
|
2024-01-07 13:08:01 +00:00
|
|
|
node-version: 20
|
2023-09-01 13:27:55 +00:00
|
|
|
cache: 'pnpm'
|
2023-03-10 18:17:11 +00:00
|
|
|
|
2023-09-01 13:27:55 +00:00
|
|
|
- name: Install pnpm packages
|
|
|
|
run: pnpm install
|
2023-03-10 18:17:11 +00:00
|
|
|
|
|
|
|
- name: Build Project
|
2023-09-01 13:27:55 +00:00
|
|
|
run: pnpm run build
|
2024-01-07 16:56:49 +00:00
|
|
|
|
|
|
|
docker:
|
|
|
|
name: Build Docker
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- name: Setup Docker buildx
|
|
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
|
|
|
|
- name: Build Docker image
|
|
|
|
uses: docker/build-push-action@v5
|
|
|
|
with:
|
|
|
|
push: false
|
|
|
|
context: .
|