Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

Commit

Permalink
Update workflown syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
prince-chrismc committed Jun 24, 2022
1 parent da8b848 commit d670277
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
jobs:
commit:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'pull_request' || github.event_name == 'push' }}
if: github.event_name == 'pull_request' || github.event_name == 'push'
steps:
- uses: actions/setup-go@v3
with:
Expand All @@ -31,13 +31,13 @@ jobs:
with:
files: coverage.out

- run: go run ./cmd/cpr -d -t ${{ secrets.GITHUB_TOKEN }}
- run: go run ./cmd/tir -d -t ${{ secrets.GITHUB_TOKEN }}
- run: go run ./cmd/ovm -d -t ${{ secrets.GITHUB_TOKEN }}
- run: go run ./cmd/cpr -d -t ${{ github.token }}
- run: go run ./cmd/tir -d -t ${{ github.token }}
- run: go run ./cmd/ovm -d -t ${{ github.token }}

run:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
steps:
- uses: actions/setup-go@v3
with:
Expand All @@ -50,24 +50,24 @@ jobs:
restore-keys: ${{ runner.os }}-go-
- run: go get -v -t -d ./...

- run: go run ./cmd/cpr -t ${{ secrets.GITHUB_TOKEN }}
- run: go run ./cmd/cpr -t ${{ github.token }}

- if: ${{ github.event_name == 'workflow_dispatch' || github.event.schedule == '0 0 * * *' }}
run: go run ./cmd/tir -t ${{ secrets.GITHUB_TOKEN }}
run: go run ./cmd/tir -t ${{ github.token }}

- if: ${{ github.event_name == 'workflow_dispatch' || github.event.schedule == '0 0 * * *' }}
run: go run ./cmd/ovm -t ${{ secrets.GITHUB_TOKEN }}
run: go run ./cmd/ovm -t ${{ github.token }}

golangci:
if: ${{ github.event_name == 'pull_request' || github.event_name == 'push' }}
if: github.event_name == 'pull_request' || github.event_name == 'push'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: golangci/golangci-lint-action@v3


staticcheck:
if: ${{ github.event_name == 'pull_request' || github.event_name == 'push' }}
if: github.event_name == 'pull_request' || github.event_name == 'push'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit d670277

Please sign in to comment.