From d786b8fb41b5ecd1a9e35eba8fc6a06ce53c85eb Mon Sep 17 00:00:00 2001 From: Radu Lucut Date: Wed, 13 Dec 2023 14:12:11 +0200 Subject: [PATCH] Add test workflow and badge --- .github/workflows/test.yml | 20 ++++++++++++++++++++ README.md | 2 ++ 2 files changed, 22 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..bb14b6a --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,20 @@ +name: Test + +on: [push] + +jobs: + test: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + go: ["1.20"] + os: [ubuntu-latest] + name: ${{ matrix.os }} Go ${{ matrix.go }} Tests + steps: + - uses: actions/checkout@v3 + - name: Setup go + uses: actions/setup-go@v3 + with: + go-version: ${{ matrix.go }} + - run: go test diff --git a/README.md b/README.md index 555a5a5..cf8a9a9 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ Experimental alternative to HTML +![Test](https://github.com/radulucut/htnoml/actions/workflows/test.yml/badge.svg) + ### Example ```htnoml