goshort/.github/workflows/check.yml

48 lines
901 B
YAML
Raw Normal View History

2023-09-21 22:56:01 -03:00
name: Check
2023-09-21 16:20:59 -03:00
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
jobs:
checks:
runs-on: ubuntu-latest
steps:
2024-03-10 04:42:13 -03:00
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
2023-09-21 16:20:59 -03:00
with:
go-version: "1.21"
cache: false
2024-03-10 04:42:13 -03:00
- uses: actions/setup-node@v4
2023-09-21 22:56:01 -03:00
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
2024-03-09 23:29:43 -03:00
uses: golangci/golangci-lint-action@v4
2023-09-21 16:20:59 -03:00
with:
2024-03-10 04:32:37 -03:00
install-mode: "binary"
2024-03-09 23:29:43 -03:00
version: v1.56.2
2024-03-10 04:51:07 -03:00
args: --timeout=5m
2023-09-21 16:20:59 -03:00
- name: build
2023-09-21 22:56:01 -03:00
run: make all
2023-09-21 16:20:59 -03:00
- name: test
run: make test