Skip to content

GitHub actions

GitHub actions #8

Workflow file for this run

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