Skip to content

Commit

Permalink
Merge pull request #82 from GoogleCloudPlatform/main
Browse files Browse the repository at this point in the history
add GitHub workflows
  • Loading branch information
songjiaxun authored Oct 17, 2023
2 parents 5b3c9d4 + 9513f1a commit 949ceb2
Showing 1 changed file with 73 additions and 0 deletions.
73 changes: 73 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: ci

on:
push:
branches:
- main
- 'release-*'
pull_request:
branches:
- '*'

jobs:
build:
runs-on: ubuntu-20.04
timeout-minutes: 10
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: './go.mod'
check-latest: true
- name: Build CSI driver
run: make driver
- name: Build sidecar mounter
run: make sidecar-mounter
- name: Build webhook
run: make webhook
- name: Build e2e test binary
run: go build -mod=vendor ./test/e2e

unit-test:
runs-on: ubuntu-20.04
timeout-minutes: 10
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: './go.mod'
check-latest: true
- name: Test
run: make unit-test

sanity-test:
runs-on: ubuntu-20.04
timeout-minutes: 10
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: './go.mod'
check-latest: true
- name: Test
run: make sanity-test

verify:
runs-on: ubuntu-20.04
timeout-minutes: 10
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: './go.mod'
check-latest: true
- name: Verify
run: make verify

0 comments on commit 949ceb2

Please sign in to comment.