mirror of
https://github.com/yannh/kubeconform.git
synced 2026-02-11 14:09:21 +00:00
46 lines
1.1 KiB
YAML
46 lines
1.1 KiB
YAML
name: ci
|
|
on: push
|
|
jobs:
|
|
kubeconform-test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- name: test
|
|
run: make docker-test
|
|
|
|
- name: build
|
|
run: make goreleaser-build-static
|
|
|
|
- name: acceptance-test
|
|
run: make docker-acceptance
|
|
|
|
openapi2jsonschema-test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- name: test
|
|
working-directory: ./scripts
|
|
run: make docker-test docker-acceptance
|
|
|
|
goreleaser:
|
|
runs-on: ubuntu-latest
|
|
needs:
|
|
- kubeconform-test
|
|
- openapi2jsonschema-test
|
|
if: startsWith(github.ref, 'refs/tags/v')
|
|
steps:
|
|
- name: checkout
|
|
uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0 # https://github.com/goreleaser/goreleaser-action/issues/56
|
|
|
|
- name: goreleaser
|
|
run: |
|
|
echo "${{ github.token }}" | docker login https://ghcr.io -u ${GITHUB_ACTOR} --password-stdin
|
|
make release
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|