mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
3310c0407b
* Update to v1.25.4 Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com> * Bump golang version to v1.19.3 Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com> Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>
57 lines
1.4 KiB
YAML
57 lines
1.4 KiB
YAML
name: Integration Test Coverage
|
|
on:
|
|
push:
|
|
paths-ignore:
|
|
- "**.md"
|
|
- "channel.yaml"
|
|
- "install.sh"
|
|
- "tests/**"
|
|
- "!tests/integration**"
|
|
- ".github/**"
|
|
- "!.github/workflows/integration.yaml"
|
|
pull_request:
|
|
paths-ignore:
|
|
- "**.md"
|
|
- "channel.yaml"
|
|
- "install.sh"
|
|
- "tests/**"
|
|
- "!tests/integration**"
|
|
- ".github/**"
|
|
- "!.github/workflows/integration.yaml"
|
|
workflow_dispatch: {}
|
|
jobs:
|
|
build:
|
|
uses: ./.github/workflows/build-k3s.yaml
|
|
test:
|
|
needs: build
|
|
name: Integration Tests
|
|
runs-on: ubuntu-20.04
|
|
timeout-minutes: 30
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 1
|
|
- name: Install Go
|
|
uses: actions/setup-go@v3
|
|
with:
|
|
go-version: '1.19.3'
|
|
check-latest: true
|
|
cache: true
|
|
cache-dependency-path: |
|
|
**/go.sum
|
|
**/go.mod
|
|
- name: "Download k3s binary"
|
|
uses: actions/download-artifact@v2
|
|
with:
|
|
name: k3s
|
|
path: ./dist/artifacts
|
|
- name: Run Integration Tests
|
|
run: |
|
|
chmod +x ./dist/artifacts/k3s
|
|
sudo -E env "PATH=$PATH" go test -v ./tests/integration/... -run Integration
|
|
- name: On Failure, Launch Debug Session
|
|
if: ${{ failure() }}
|
|
uses: mxschmitt/action-tmate@v3
|
|
timeout-minutes: 5
|