-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #64 from flanksource/fix/failing-to-output-files-f…
…or-windows fix: normalises data for GetUnstructuredObjects to UTF-8 with LF endings
- Loading branch information
Showing
12 changed files
with
626 additions
and
77 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
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.16.5' # The Go version to download (if necessary) and use. | ||
- run: go version | ||
- 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: replace Module | ||
- 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 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ on: | |
push: | ||
branches: | ||
- master | ||
- main | ||
jobs: | ||
semantic-release: | ||
runs-on: ubuntu-20.04 | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,63 +1,22 @@ | ||
name: Karina upstream | ||
|
||
on: | ||
pull_request: | ||
branches: [ master ] | ||
|
||
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.16.5' # The Go version to download (if necessary) and use. | ||
- run: go version | ||
- 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: replace Module | ||
- 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 | ||
name: Testing | ||
|
||
on: | ||
pull_request: | ||
branches: [ master, main ] | ||
|
||
jobs: | ||
gotest: | ||
strategy: | ||
matrix: | ||
go-version: [1.16.x] | ||
platform: [ubuntu-latest] | ||
runs-on: ${{ matrix.platform }} | ||
steps: | ||
- name: Install Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{ matrix.go-version }} | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Test | ||
run: make test |
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
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
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
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
Oops, something went wrong.