build(deps): bump tower from 0.5.1 to 0.5.2 #154
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: pre-commit | |
on: | |
push: | |
branches: [main, master, dev] | |
pull_request: | |
branches: [main, master, dev] | |
permissions: | |
contents: read | |
env: | |
SQLX_VERSION: 0.8.2 | |
SQLX_FEATURES: "rustls,sqlite" | |
jobs: | |
pre-commit: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2 | |
with: | |
egress-policy: audit | |
disable-telemetry: true | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Install Linux Dependencies | |
run: sudo apt-get update && sudo apt-get install sqlite3 -y | |
- name: Cache sqlx-cli | |
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2 | |
id: cache-sqlx | |
with: | |
path: ~/.cargo/bin/sqlx ~/.cargo/bin/cargo-sqlx | |
key: ${{ runner.os }}-sqlx-${{ env.SQLX_VERSION }} | |
- uses: dtolnay/rust-toolchain@4f647fc679bcd3b11499ccb42104547c83dabe96 # stable | |
- name: Install sqlx-cli | |
if: steps.cache-sqlx.outputs.cache-hit == false | |
run: cargo install sqlx-cli --force --version=${{ env.SQLX_VERSION}} --features=${{ env.SQLX_FEATURES}} --no-default-features | |
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0 | |
with: | |
python-version: '3.13' | |
- uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0 | |
with: | |
go-version: '>=1.18.0' | |
- name: Migrate database | |
run: ./scripts/init_db.sh | |
- name: Check sqlx-data.json is up-to-date | |
run: cargo sqlx prepare --check -- --bin axum-graphql | |
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1 | |
env: | |
SKIP: no-commit-to-branch |