Skip to content

Commit

Permalink
ci: update azwi workflow to run on push to main and remove pull_reque…
Browse files Browse the repository at this point in the history
…st (#383)

Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
  • Loading branch information
aramase committed Feb 24, 2022
1 parent b573df1 commit 83320f2
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 5 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/azwi-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Azure Workload Identity CI

on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *' # nightly
pull_request:
branches:
- main
- release-**
paths-ignore:
- docs/**
- README.md

jobs:
azwi_build:
strategy:
fail-fast: false
matrix:
# TODO(aramase): add windows test env
env: [ubuntu-20.04, macos-11]
runs-on: ${{ matrix.env }}
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-go@v2
with:
go-version: "^1.17"
- name: Build azwi
run: |
make bin/azwi
- name: Validate azwi commands
run: |
./bin/azwi version
./bin/azwi -h
./bin/azwi serviceaccount -h
./bin/azwi serviceaccount create -h
./bin/azwi serviceaccount delete -h
./bin/azwi jwks -h
7 changes: 2 additions & 5 deletions .github/workflows/azwi-e2e.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
name: Azure Workload Identity CI
name: Azure Workload Identity E2E

on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *' # nightly
pull_request:
push:
branches:
- main
- release-**
paths-ignore:
- docs/**
- README.md

permissions:
id-token: write
Expand Down

0 comments on commit 83320f2

Please sign in to comment.