Skip to content

chore: update k8s.io dependencies #57

chore: update k8s.io dependencies

chore: update k8s.io dependencies #57

Workflow file for this run

name: Karina upstream
on:
pull_request:
branches: [master, main]
jobs:
test:
runs-on: ubuntu-latest
env:
FILE_CHANGES_TO_CORE_ARTIFACTS: true
strategy:
fail-fast: false
matrix:
k8s:
- v1.18.6
suite:
- minimal
steps:
- uses: actions/checkout@v2
with:
path: kommons
- uses: actions/checkout@v2
with:
#Using Main branch of Karina Repository
repository: flanksource/karina
path: karina
- uses: actions/setup-go@v2
with:
go-version: "1.18" # The Go version to download (if necessary) and use.
- run: go version
- name: replace Module
run: |
cd karina
module=$(cat go.mod | grep github.com/flanksource/kommons | awk '{print $2}')
go mod edit -replace github.com/flanksource/kommons@$module=$GITHUB_WORKSPACE/kommons
cat go.mod
go mod tidy
- name: Test Make Linux
working-directory: ./karina
run: make linux
- name: Run e2e testing script
id: e2e
working-directory: ./karina
env:
SUITE: ${{ matrix.suite }}
KUBERNETES_VERSION: ${{matrix.k8s}}
BUILD: test (${{matrix.k8s}}, ${{ matrix.suite }})
ADDITIONAL_CONFIG: -c test/hosted-tests.yaml
run: ./test/test.sh
- name: Upload test results
uses: actions/upload-artifact@v2
with:
if-no-files-found: ignore
name: test-results-${{matrix.k8s}}-${{matrix.suite}}
path: test-results/
- name: Upload snapshots
uses: actions/upload-artifact@v2
with:
if-no-files-found: ignore
name: snapshot-${{matrix.k8s}}-${{matrix.suite}}
path: artifacts/snapshot.zip