mirror of
https://github.com/ceph/go-ceph
synced 2024-12-15 02:45:52 +00:00
fee7ff61ce
This should basically run similarly to the travis ci configuration but use the native github ci infrastructure. In order to avoid messing around with various env vars I had to use the v2-beta version of the go setup library. Once v2 has been released we can switch away from the beta. Signed-off-by: John Mulligan <jmulligan@redhat.com>
40 lines
856 B
YAML
40 lines
856 B
YAML
|
|
name: CI
|
|
|
|
# Run tests on pull requests and when changes are directly
|
|
# commited to master.
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
# Run static/code-quality checks
|
|
check:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/setup-go@v2-beta
|
|
with:
|
|
go-version: 1.14
|
|
- uses: actions/checkout@v2
|
|
- name: Install revive
|
|
run: go get github.com/mgechev/revive
|
|
- name: Run checks
|
|
run: make check
|
|
|
|
# Run the test suite in a container per-ceph-codename
|
|
test-suite:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
ceph_version:
|
|
- "luminous"
|
|
- "mimic"
|
|
- "nautilus"
|
|
- "octopus"
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Run test container
|
|
run: make test-container "CEPH_VERSION=${{ matrix.ceph_version }}"
|