1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-22 14:57:40 +01:00
smov/.github/workflows/linting_testing.yml

76 lines
1.4 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
uses: actions/checkout@v4
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
uses: actions/setup-node@v4
2022-12-27 15:08:03 +01:00
with:
node-version: 20
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@v4
2023-03-10 19:17:11 +01:00
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@v4
2023-03-10 19:17:11 +01:00
with:
node-version: 20
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
2024-01-07 17:56:49 +01: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
2024-01-07 18:05:59 +01:00
platforms: linux/amd64,linux/arm64
2024-01-07 17:56:49 +01:00
context: .