GitHub actions #8
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Frontend | |
on: [ push, pull_request ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install pnpm | |
run: curl -fsSL https://get.pnpm.io/install.sh | env ENV="$HOME/.shrc" SHELL="$(which sh)" PNPM_VERSION=8.14.1 sh - | |
- name: Reload .shrc | |
run: source /home/runner/.shrc | |
- name: Install dependencies | |
run: pnpm install | |
- run: pnpm run test | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install pnpm | |
run: curl -fsSL https://get.pnpm.io/install.sh | env ENV="$HOME/.shrc" SHELL="$(which sh)" PNPM_VERSION=8.14.1 sh - | |
- name: Reload .shrc | |
run: source /home/runner/.shrc | |
- name: Install dependencies | |
run: pnpm install | |
- run: pnpm run lint | |
format: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install pnpm | |
run: curl -fsSL https://get.pnpm.io/install.sh | env ENV="$HOME/.shrc" SHELL="$(which sh)" PNPM_VERSION=8.14.1 sh - | |
- name: Reload .shrc | |
run: source /home/runner/.shrc | |
- name: Install dependencies | |
run: pnpm install | |
- run: pnpm run format-check | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install pnpm | |
run: curl -fsSL https://get.pnpm.io/install.sh | env ENV="$HOME/.shrc" SHELL="$(which sh)" PNPM_VERSION=8.14.1 sh - | |
- name: Reload .shrc | |
run: source /home/runner/.shrc | |
- name: Install dependencies | |
run: pnpm install | |
- name: Build | |
run: pnpm run build |