Merge pull request #1219 from flanksource/db-fixes- #2838
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
on: | |
push: | |
tags: | |
- v* | |
branches: | |
- master | |
pull_request: | |
merge_group: | |
name: Test | |
permissions: | |
contents: read | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
suite: | |
- minimal --skip-all | |
- k8s | |
- datasources | |
- search | |
- git | |
# - restic | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@bfdd3570ce990073878bf10f6b2d79082de49492 # v2.2.0 | |
with: | |
go-version: 1.19.x | |
- name: Checkout code | |
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 | |
- uses: actions/cache@8492260343ad570701412c2f464a5877dc76bace # v2 | |
with: | |
path: | | |
~/go/pkg/mod | |
~/.cache/go-build | |
.bin | |
key: cache-${{ hashFiles('**/go.sum') }}-${{ hashFiles('.bin/*') }} | |
restore-keys: | | |
cache- | |
- run: make bin | |
- name: Test | |
env: | |
KUBERNETES_VERSION: v1.20.7 | |
GH_TOKEN: ${{ secrets.CHECKRUNS_TOKEN }} | |
run: ./test/e2e.sh fixtures/${{matrix.suite}} | |
- name: Publish Unit Test Results | |
uses: EnricoMi/publish-unit-test-result-action@b9f6c61d965bcaa18acc02d6daf706373a448f02 # v1.40 | |
if: always() && github.event.repository.fork == 'false' | |
with: | |
files: test/test-results.xml | |
check_name: E2E - ${{matrix.suite}} |