explorer-app/.github/workflows/ci.yml

39 lines
1 KiB
YAML
Raw Normal View History

2023-12-19 18:43:42 +01:00
name: CI
on:
push:
2024-09-17 16:13:49 +02:00
branches: [main, v3]
2023-12-19 18:43:42 +01:00
pull_request:
2024-09-17 16:13:49 +02:00
branches: [main, v3]
2023-12-19 18:43:42 +01:00
jobs:
codechecks:
runs-on: ubuntu-latest
steps:
2024-09-17 16:13:49 +02:00
- name: Checkout the repository
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
2023-12-19 18:43:42 +01:00
with:
2024-09-17 16:13:49 +02:00
run_install: false
- name: Install Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: pnpm
- name: Enable Corepack
run: corepack enable
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- name: Cache the pnpm lock file
uses: actions/cache@v4
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
2023-12-19 18:43:42 +01:00
restore-keys: |
2024-09-17 16:13:49 +02:00
${{ runner.os }}-pnpm-store-
- name: Install package dependencies
2023-12-19 18:43:42 +01:00
run: pnpm install
2024-09-17 16:13:49 +02:00
- name: Lint the code
2023-12-19 18:43:42 +01:00
run: pnpm run lint