mirror of
https://github.com/go-gst/go-gst.git
synced 2025-09-26 20:11:18 +08:00
30 lines
625 B
YAML
30 lines
625 B
YAML
name: Tests
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
setup:
|
|
name: Tests on codebase
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out code into the Go module directory
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Check formatting
|
|
uses: Jerome1337/gofmt-action@v1.0.5
|
|
with:
|
|
gofmt-flags: "-l -d"
|
|
|
|
- name: Check spellings
|
|
uses: reviewdog/action-misspell@v1
|
|
with:
|
|
locale: "US"
|
|
fail_on_error: true
|
|
filter_mode: nofilter
|
|
- uses: dominikh/staticcheck-action@v1.3.0
|
|
with:
|
|
min-go-version: "1.21"
|