Skip to content

Commit

Permalink
Miscellaneous CI cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
iskakaushik committed Oct 5, 2023
1 parent 23d8da9 commit 18f7188
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 37 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build and Test
on:
push:
branches: [main, release/*]
pull_request:
pull_request_target:
branches: [main]

jobs:
Expand Down Expand Up @@ -31,7 +31,6 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: recursive
token: ${{ secrets.SUBMODULE_CHECKOUT }}

- uses: dtolnay/rust-toolchain@stable

Expand Down
1 change: 0 additions & 1 deletion .github/workflows/dev-debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ jobs:
uses: actions/checkout@v3
with:
submodules: recursive
token: ${{ secrets.SUBMODULE_CHECKOUT }}

- name: install system tools
run: |
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/dev-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@ name: Dev Docker Images
on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
docker-build:
strategy:
matrix:
runner: [ubuntu-latest, ubicloud]
runner: [ubicloud]
runs-on: ${{ matrix.runner }}
permissions:
contents: read
Expand All @@ -20,7 +18,6 @@ jobs:
uses: actions/checkout@v3
with:
submodules: recursive
token: ${{ secrets.SUBMODULE_CHECKOUT }}

- uses: depot/setup-action@v1

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/flow.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Flow build and test

on:
pull_request:
pull_request_target:
branches: [main]
push:
branches: [main]
Expand All @@ -10,7 +10,7 @@ jobs:
flow_test:
strategy:
matrix:
runner: [ubicloud-standard-8]
runner: [ubicloud-standard-4]
runs-on: ${{ matrix.runner }}
timeout-minutes: 30
services:
Expand Down Expand Up @@ -73,7 +73,7 @@ jobs:

- name: run tests
run: |
gotestsum --format testname -- -p 4 ./... -timeout 1200s
gotestsum --format testname -- -p 4 ./... -timeout 2400s
working-directory: ./flow
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/golang-lint.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: GolangCI-Lint

on: [pull_request]
on: [pull_request_target]

jobs:
golangci-lint:
Expand All @@ -10,14 +10,13 @@ jobs:
pull-requests: write
strategy:
matrix:
runner: [ubuntu-latest, ubicloud]
runner: [ubicloud]
runs-on: ${{ matrix.runner }}
steps:
- name: checkout
uses: actions/checkout@v3
with:
submodules: recursive
token: ${{ secrets.SUBMODULE_CHECKOUT }}

- name: golangci-lint
uses: reviewdog/action-golangci-lint@v2
Expand Down
29 changes: 12 additions & 17 deletions .github/workflows/rust-lint.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: clippy-action
on: [pull_request]
on: [pull_request_target]
jobs:
clippy:
permissions:
Expand All @@ -8,23 +8,18 @@ jobs:
pull-requests: write
strategy:
matrix:
runner: [ubuntu-latest, ubicloud]
runner: [ubicloud]
runs-on: ${{ matrix.runner }}
steps:
- name: checkout
uses: actions/checkout@v3
with:
submodules: recursive
token: ${{ secrets.SUBMODULE_CHECKOUT }}
- name: checkout
uses: actions/checkout@v3
with:
submodules: recursive

- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy

- uses: giraffate/clippy-action@v1
with:
reporter: 'github-pr-review'
github_token: ${{ secrets.GITHUB_TOKEN }}
workdir: ./nexus
env:
REVIEWDOG_TOKEN: ${{ secrets.REVIEWDOG_TOKEN }}
- name: clippy
run: cargo clippy --all-targets --all-features -- -D warnings
working-directory: ./nexus
1 change: 0 additions & 1 deletion .github/workflows/stable-debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ jobs:
uses: actions/checkout@v3
with:
submodules: recursive
token: ${{ secrets.SUBMODULE_CHECKOUT }}

- name: install system tools
run: |
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/stable-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
docker-build:
strategy:
matrix:
runner: [ubuntu-latest, ubicloud]
runner: [ubicloud]
runs-on: ${{ matrix.runner }}
permissions:
contents: read
Expand All @@ -19,7 +19,6 @@ jobs:
uses: actions/checkout@v3
with:
submodules: recursive
token: ${{ secrets.SUBMODULE_CHECKOUT }}

- uses: depot/setup-action@v1

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ui-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
name: Build & Test UI
strategy:
matrix:
runner: [ubuntu-latest, ubicloud]
runner: [ubicloud]
runs-on: ${{ matrix.runner }}
steps:
- name: checkout
Expand All @@ -25,4 +25,4 @@ jobs:

- name: Build
working-directory: ui
run: yarn build
run: yarn build
4 changes: 2 additions & 2 deletions .github/workflows/ui-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
name: Run UI linters
strategy:
matrix:
runner: [ubuntu-latest, ubicloud]
runner: [ubicloud]
runs-on: ${{ matrix.runner }}
steps:
- name: checkout
Expand All @@ -33,4 +33,4 @@ jobs:
eslint: true
prettier: true
eslint_dir: ui
prettier_dir: ui
prettier_dir: ui

0 comments on commit 18f7188

Please sign in to comment.