mirror of https://github.com/k3s-io/k3s.git
Migrate test-mods from Drone to GHA
Signed-off-by: Derek Nola <derek.nola@suse.com>pull/12169/head
parent
03fac6ce30
commit
ecfbb89681
45
.drone.yml
45
.drone.yml
|
@ -398,51 +398,6 @@ volumes:
|
|||
host:
|
||||
path: /var/run/docker.sock
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
name: validate_go_mods
|
||||
|
||||
platform:
|
||||
os: linux
|
||||
arch: amd64
|
||||
|
||||
trigger:
|
||||
event:
|
||||
exclude:
|
||||
- cron
|
||||
|
||||
steps:
|
||||
- name: skipfiles
|
||||
image: plugins/git
|
||||
commands:
|
||||
- export NAME=$(test $DRONE_BUILD_EVENT = pull_request && echo remotes/origin/${DRONE_COMMIT_BRANCH:-master} || echo ${DRONE_COMMIT_SHA}~)
|
||||
- export DIFF=$(git --no-pager diff --name-only $NAME | grep -v -f .droneignore);
|
||||
- if [ -z "$DIFF" ]; then
|
||||
echo "All files in PR are on ignore list";
|
||||
exit 78;
|
||||
else
|
||||
echo "Some files in PR are not ignored, $DIFF";
|
||||
fi;
|
||||
when:
|
||||
event:
|
||||
- push
|
||||
- pull_request
|
||||
|
||||
- name: validate_go_mods
|
||||
image: rancher/dapper:v0.6.0
|
||||
commands:
|
||||
- docker build --target test-mods -t k3s:mod -f Dockerfile.test .
|
||||
- docker run -i k3s:mod
|
||||
|
||||
volumes:
|
||||
- name: docker
|
||||
path: /var/run/docker.sock
|
||||
|
||||
volumes:
|
||||
- name: docker
|
||||
host:
|
||||
path: /var/run/docker.sock
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
name: manifest
|
||||
|
|
|
@ -77,3 +77,13 @@ jobs:
|
|||
files: ./coverage.out
|
||||
flags: unittests # optional
|
||||
verbose: true # optional (default = false)
|
||||
test-mods:
|
||||
name: Test K8s Modules
|
||||
runs-on: ubuntu-24.04
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Build test-mods
|
||||
run: docker build --target test-mods -t k3s:mod -f Dockerfile.test .
|
||||
- name: Run test-mods
|
||||
run: docker run -i k3s:mod
|
Loading…
Reference in New Issue