add(action): spell check and test action
All checks were successful
Go Project Action / Spell-check and test go project (push) Successful in 1m49s

This commit is contained in:
2024-10-06 10:35:05 +02:00
parent 2c1fc885f5
commit 68e25b8dbc
2 changed files with 31 additions and 0 deletions

View 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
View File

@@ -0,0 +1,2 @@
[files]
extend-exclude = []