feat: Caddy 2.8 support (#144) #406
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
pull_request: | |
env: | |
GO111MODULE: 'on' | |
jobs: | |
golangci: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: '1.21' | |
cache-dependency-path: | | |
go.sum | |
caddy/go.sum | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
version: latest | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: '1.21' | |
cache-dependency-path: | | |
go.sum | |
caddy/go.sum | |
- name: Install test dependencies | |
run: composer install --no-progress --no-suggest --ansi | |
working-directory: test-push | |
- name: Test | |
run: go test -covermode atomic -coverprofile=cover.out github.com/dunglas/vulcain | |
- name: Test Caddy module | |
run: | | |
go test -race -covermode atomic -coverprofile=cover.out -coverpkg=github.com/dunglas/vulcain | |
sed '1d' cover.out >> ../cover.out | |
working-directory: ./caddy | |
- name: Upload coverage results | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} |