forked from LaconicNetwork/kompose
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 3 to 4. - [Release notes](https://github.com/actions/setup-go/releases) - [Commits](https://github.com/actions/setup-go/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/setup-go dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
46 lines
1.3 KiB
YAML
46 lines
1.3 KiB
YAML
name: Kompose CI
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
env:
|
|
# Avoid noisy outputs like "tput: No value for $TERM and no -T specified"
|
|
TERM: dumb
|
|
jobs:
|
|
test:
|
|
name: Test with ${{ matrix.go }} and CROSS_COMPILE=${{ matrix.cross_compile }}
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
go: [1.18, 1.19]
|
|
cross_compile: [true, false]
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-go@v4
|
|
with:
|
|
go-version: ${{ matrix.go }}
|
|
- name: Run tests
|
|
run: make test
|
|
- name: Perform cross compile
|
|
if: ${{ matrix.cross_compile }}
|
|
run: make cross
|
|
docs:
|
|
name: Build docs and Coveralls integration
|
|
runs-on: ubuntu-latest
|
|
needs: test
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-go@v4
|
|
with:
|
|
go-version: 1.19
|
|
- name: Create .coverprofile for each targeted directory by re:running tests
|
|
run: make test
|
|
- name: Collect all .coverprofile files and save it to one file gover.coverprofile
|
|
run: gover
|
|
- name: Send coverage
|
|
run: goveralls -coverprofile=gover.coverprofile -service=github
|
|
env:
|
|
# As per https://github.com/mattn/goveralls#github-actions
|
|
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|