add(action): spell check and test action
All checks were successful
Go Project Action / Spell-check and test go project (push) Successful in 1m49s
All checks were successful
Go Project Action / Spell-check and test go project (push) Successful in 1m49s
This commit is contained in:
29
.gitea/workflows/test.yaml
Normal file
29
.gitea/workflows/test.yaml
Normal file
@@ -0,0 +1,29 @@
|
||||
name: Go Project Action
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
types: [opened, synchronize, reopened]
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
run:
|
||||
name: Spell-check and test go project
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 15
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
- name: Setup Go installation
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: 1.23.x
|
||||
- name: Spell checking
|
||||
uses: crate-ci/typos@v1.25.0
|
||||
with:
|
||||
config: ./.typos-config
|
||||
- name: Install dependencies
|
||||
run: go get .
|
||||
- name: Run tests
|
||||
run: go test ./...
|
||||
2
.typos-config
Normal file
2
.typos-config
Normal file
@@ -0,0 +1,2 @@
|
||||
[files]
|
||||
extend-exclude = []
|
||||
Reference in New Issue
Block a user