Skip to content

Commit

Permalink
Move from drone to Github Actions for 1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
mitulshah-suse committed May 31, 2024
1 parent 25d3846 commit 26175a9
Show file tree
Hide file tree
Showing 7 changed files with 204 additions and 242 deletions.
207 changes: 0 additions & 207 deletions .drone.yml

This file was deleted.

6 changes: 0 additions & 6 deletions .droneignore

This file was deleted.

31 changes: 31 additions & 0 deletions .github/workflows/fossa.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Fossa scan

on:
push:
branches:
- '*'
tags:
- '*'
pull_request:
branches:
- '*'

jobs:
fossa:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
continue-on-error: true # we know that fossa test will report errors
steps:
- name: Load Secrets from Vault
uses: rancher-eio/read-vault-secrets@main
with:
secrets: |
secret/data/github/repo/${{ github.repository }}/fossa/credentials token | FOSSA
- name: Checkout Repo
uses: actions/checkout@v4
- name: Run FOSSA scan
uses: fossas/[email protected]
with:
api-key: ${{ env.FOSSA }}
27 changes: 27 additions & 0 deletions .github/workflows/test-cni.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Test CNI

on:
pull_request:
branches:
- '**'

jobs:
integration-cni-tests:
permissions:
contents: read
runs-on: runs-on,runner=4cpu-linux-x64,run-id=${{ github.run_id }}
timeout-minutes: 60
strategy:
matrix:
cni: [flannel, calico, weave]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Run ${{ matrix.cni }} check
run: |
./scripts/build
./scripts/integration ${{ matrix.cni }}
Loading

0 comments on commit 26175a9

Please sign in to comment.