From 68e25b8dbcd3915d395662d65a31a050f405b06e Mon Sep 17 00:00:00 2001 From: Yves Biener Date: Sun, 6 Oct 2024 10:35:05 +0200 Subject: [PATCH] add(action): spell check and test action --- .gitea/workflows/test.yaml | 29 +++++++++++++++++++++++++++++ .typos-config | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 .gitea/workflows/test.yaml create mode 100644 .typos-config diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml new file mode 100644 index 0000000..d7b4bbf --- /dev/null +++ b/.gitea/workflows/test.yaml @@ -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 ./... diff --git a/.typos-config b/.typos-config new file mode 100644 index 0000000..7b30bb8 --- /dev/null +++ b/.typos-config @@ -0,0 +1,2 @@ +[files] +extend-exclude = []