feat: Create application if it doesn't exist before adding secret #5714
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Dozer CI | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: [main] | |
merge_group: | |
env: | |
CARGO_TERM_COLOR: always | |
concurrency: | |
group: ci/${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
lint: | |
timeout-minutes: 60 | |
runs-on: | |
labels: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install minimal stable with clippy and rustfmt | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
components: rustfmt, clippy | |
- name: Install Protoc | |
uses: arduino/setup-protoc@v1 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: ⚡ Cache | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cargo/bin/ | |
~/.cargo/.crates.toml | |
~/.cargo/.crates2.json | |
~/.cargo/.package-cache | |
~/.cargo/registry/ | |
~/.cargo/git/db/ | |
target/ | |
key: clippy-${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }} | |
restore-keys: | | |
clippy-${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }} | |
clippy-${{ runner.os }}-cargo- | |
- name: Clippy | |
run: | | |
cargo clippy --workspace --all-features --all-targets -- -D warnings | |
- name: Lint | |
run: | | |
cargo fmt -- --check |