From be8df5b2971a113d4268d831baf3a667ae07b196 Mon Sep 17 00:00:00 2001 From: Victor Schappert Date: Wed, 20 Dec 2023 20:17:56 -0800 Subject: [PATCH] Set up GitHub Actions workflow to run test on push & PR --- .github/workflows/tests.yaml | 25 +++++++++++++++++++++++++ README.md | 2 ++ 2 files changed, 27 insertions(+) create mode 100644 .github/workflows/tests.yaml diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml new file mode 100644 index 0000000..2c6317f --- /dev/null +++ b/.github/workflows/tests.yaml @@ -0,0 +1,25 @@ +name: tests +run-name: ${{ github.actor }} is running tests +on: [push, pull_request] +env: + GO_MINIMUM_VERSION: 1.20 +jobs: + go_minimum: + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5.0.0 + with: + go-version: ${{ env.GO_MINIMUM_VERSION }} + - run: go test ./packedrtree ./flatgeobuf + go_latest: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5.0.0 + with: + go-version: ${{ env.GO_MINIMUM_VERSION }} + check-latest: true diff --git a/README.md b/README.md index 41fd663..fc67d25 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,8 @@ performant binary encoding for geographic data based on ## Project Status +![test status](https://github.com/gogama/flatgeobuf/actions/workflows/tests.yaml/badge.svg) + The most recent release is [v0.9.3-alpha](https://github.com/gogama/flatgeobuf/releases/tag/v0.9.3-alpha). A beta release is expected by 2023-12-31. A stable v1.0.0 will be