From 991850c006dd1d649c589d133e15cb508b18e03d Mon Sep 17 00:00:00 2001 From: Rodney Lab Date: Wed, 30 Oct 2024 14:45:33 +0000 Subject: [PATCH] =?UTF-8?q?ci:=20=F0=9F=90=9D=20debug=20Workflows?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pre-commit.yml | 13 +++++++++++++ migrations/20241018164225_create_post_table.sql | 2 +- public/static/css/index.css | 2 +- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 361532c..b72b0d2 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -16,12 +16,25 @@ jobs: 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-dev -y + - name: Cache sqlx-cli + id: cache-sqlx + with: + path: ~/.cargo/bin/sqlx ~/.cargo/bin/cargo-sqlx + key: ${{ runner.os }}-sqlx-${{ env.SQX_VERSION }} + - name: Install sqlx-cli + uses: dtolnay/rust-toolchain@4f366e621dc8fa63f557ca04b8f4361824a35a45 # stable + if: steps.cache-sqlx.outputs.cache-hit == false + run: / cargo install sqlx-cli --force--version --version=${{ env.SQX_VERSION}} --features=${{ env.SQX_FEATURES}} --no-default-features --locked - 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 - uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1 env: SKIP: no-commit-to-branch diff --git a/migrations/20241018164225_create_post_table.sql b/migrations/20241018164225_create_post_table.sql index 42ebd30..579ea9d 100644 --- a/migrations/20241018164225_create_post_table.sql +++ b/migrations/20241018164225_create_post_table.sql @@ -4,4 +4,4 @@ CREATE TABLE "Post" ( "title" TEXT NOT NULL, "body" TEXT NOT NULL, "published" BOOLEAN NOT NULL DEFAULT false -); \ No newline at end of file +); diff --git a/public/static/css/index.css b/public/static/css/index.css index 4558934..b5d3233 100644 --- a/public/static/css/index.css +++ b/public/static/css/index.css @@ -42,4 +42,4 @@ code { font-family: Consolas, monospace; } -/*# sourceMappingURL=index.css.map*/ \ No newline at end of file +/*# sourceMappingURL=index.css.map*/