mirror of
https://mau.dev/mautrix/go.git
synced 2026-03-14 14:25:53 +01:00
ci: add test job
Signed-off-by: Sumner Evans <sumner.evans@automattic.com>
This commit is contained in:
parent
675d176b46
commit
cba88d3b27
1 changed files with 24 additions and 0 deletions
24
.github/workflows/go.yml
vendored
24
.github/workflows/go.yml
vendored
|
|
@ -29,6 +29,30 @@ jobs:
|
|||
- name: Lint
|
||||
run: pre-commit run -a
|
||||
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
name: Test (latest)
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: "1.23"
|
||||
cache: true
|
||||
|
||||
- name: Install libolm
|
||||
run: sudo apt-get install libolm-dev libolm3
|
||||
|
||||
- name: Set up gotestfmt
|
||||
uses: GoTestTools/gotestfmt-action@v2
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Run tests
|
||||
run: |
|
||||
go test -v -json ./... -cover | gotestfmt
|
||||
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue