Files
SwipedModSwitcher/.gitea/workflows/pr-validation.yaml
Justin Harms 08baf8e1da
Some checks failed
build and test / build (push) Failing after 27s
pull request validation / Build and Test Vulture (pull_request) Failing after 38s
rename actions
2024-03-10 01:20:23 -06:00

37 lines
910 B
YAML

name: pull request validation
on:
pull_request:
branches:
- master
- develop
jobs:
build:
name: Build and Test Vulture
env:
RUNNER_TOOL_CACHE: /toolcache
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: setup-dependencies
run: |
apt-get install -y gcc-mingw-w64 gcc libgl1-mesa-dev xorg-dev
- name: Build
run: go build -v ./...
- name: Run Tests
run: go test -v ./...
- name: Check Vet
run: go vet ./...
- name: Check Formatting
run: |-
gofmt -s -l .
if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then exit 1; fi
- name: Check Lint
uses: golangci/golangci-lint-action@v3
with:
version: latest