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

Commit

Permalink
fix: tidy-up CI (#191)
Browse files Browse the repository at this point in the history
* fix: tidy-up CI

* fix: make ci work on all PRs
  • Loading branch information
varex83 authored Sep 16, 2024
1 parent 9a13861 commit c3598fd
Show file tree
Hide file tree
Showing 13 changed files with 77 additions and 352 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ on:
- develop
paths:
- 'api/**'
- '.github/workflows/api-deploy.yml'
- 'auto-api-deploy-dev.yml'

permissions:
id-token: write
contents: read
id-token: write
contents: read

env:
REGISTRY: "599564732950.dkr.ecr.us-east-2.amazonaws.com"
Expand Down Expand Up @@ -77,7 +77,6 @@ jobs:
REPOSITORY: ${{ env.REPOSITORY }}
IMAGE_TAG: ${{ steps.determine-version.outputs.version }} # ${{ github.run_number }}

# docker build --target final -t $REGISTRY/$REPOSITORY:apiserver-$IMAGE_TAG -f ./DockerfileApiServer .
run: |
docker build -t $REGISTRY/$REPOSITORY:apiserver-$IMAGE_TAG -f ./DockerfileRocket .
docker push $REGISTRY/$REPOSITORY:apiserver-$IMAGE_TAG
Expand Down
102 changes: 0 additions & 102 deletions .github/workflows/devnet-deploy.yml

This file was deleted.

102 changes: 0 additions & 102 deletions .github/workflows/devnet-prod-deploy.yml

This file was deleted.

64 changes: 64 additions & 0 deletions .github/workflows/rust-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: (ci/cd) Rust Checks

on:
pull_request:

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- run: cd api && cargo build --all

rustfmt:
name: Rustfmt
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: rustfmt
- run: cd api && cargo +nightly fmt --all -- --check

clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: clippy
- run: cd api && cargo clippy --all -- -D warnings

taplo:
name: Taplo
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: baptiste0928/cargo-install@v3
with:
crate: taplo-cli
version: "0.9.0"
locked: true
- run: taplo format --check --diff 1>&2

machete:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Detect unused dependencies with Machete
uses: bnjbvr/cargo-machete@main
30 changes: 0 additions & 30 deletions .github/workflows/rust-linting.yml

This file was deleted.

5 changes: 1 addition & 4 deletions .github/workflows/ui-linting.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
name: 'UI: Lint'
name: '(ci/cd) UI: Lint'

on:
pull_request:
branches:
- develop
- release/*

env:
NODE_VERSION: '20.x'
Expand Down
41 changes: 0 additions & 41 deletions DockerfileApiServer

This file was deleted.

Loading

0 comments on commit c3598fd

Please sign in to comment.