forked from kataras/iris
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (32 loc) · 765 Bytes
/
ci.yml
File metadata and controls
42 lines (32 loc) · 765 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
go_version: [1.24.x]
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v5
- name: Set up Go 1.x
uses: actions/setup-go@v5
with:
go-version-file: './go.mod'
check-latest: true
- run: go version
- name: Test
run: go test -v ./...
- name: Setup examples for testing
run: ./.github/scripts/setup_examples_test.bash
- name: Test examples
continue-on-error: true
working-directory: _examples
run: go test -v -mod=mod -cover -race ./...