Skip to content

ci: add test and lint workflow and documentation #1

ci: add test and lint workflow and documentation

ci: add test and lint workflow and documentation #1

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
types:
- opened
- synchronize
- reopened
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
backend:
name: Backend (go vet + go test)
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: .go-version
cache: true
- name: go vet
run: go vet ./...
- name: go test
run: go test ./...
frontend-lint:
name: Frontend (ESLint)
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: yarn
cache-dependency-path: frontend/yarn.lock
- name: Install dependencies
working-directory: frontend
run: yarn install --frozen-lockfile
- name: Lint
working-directory: frontend
run: yarn lint