mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 18:51:03 +01:00
41 lines
725 B
YAML
41 lines
725 B
YAML
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.21.x]
|
|
steps:
|
|
|
|
- name: Set up Go 1.x
|
|
uses: actions/setup-go@v4
|
|
with:
|
|
go-version: ${{ matrix.go_version }}
|
|
|
|
- name: Check out code into the Go module directory
|
|
uses: actions/checkout@v3
|
|
|
|
- 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 ./...
|