mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 10:41:03 +01:00
19a72ddc84
more features designed for the past 2-3 months to come, this is just a hotfix
43 lines
765 B
YAML
43 lines
765 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.22.x]
|
|
steps:
|
|
|
|
- name: Check out code into the Go module directory
|
|
uses: actions/checkout@v4
|
|
|
|
- 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 ./...
|