48 lines
901 B
YAML
48 lines
901 B
YAML
name: Check
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
checks:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-go@v5
|
|
with:
|
|
go-version: "1.21"
|
|
cache: false
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "18"
|
|
|
|
- name: install deps
|
|
run: make install
|
|
|
|
- name: lint frontend
|
|
run: make lint-frontend
|
|
|
|
- name: create fake frontend file for backend linting
|
|
run: mkdir frontend/dist && touch frontend/dist/index.html
|
|
|
|
- name: lint backend
|
|
uses: golangci/golangci-lint-action@v4
|
|
with:
|
|
install-mode: "binary"
|
|
version: v1.56.2
|
|
args: --timeout=5m
|
|
|
|
- name: build
|
|
run: make all
|
|
|
|
- name: test
|
|
run: make test
|