Compare commits
2 Commits
feat/crawl
...
fix/test-b
| Author | SHA1 | Date | |
|---|---|---|---|
| 074ab25f8c | |||
| 6b49a47d0a |
@@ -10,8 +10,6 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
test-backend:
|
test-backend:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
|
||||||
image: rust:1-slim
|
|
||||||
services:
|
services:
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:16-alpine
|
image: postgres:16-alpine
|
||||||
@@ -28,10 +26,18 @@ jobs:
|
|||||||
DATABASE_URL: postgres://mangalord:mangalord@postgres:5432/mangalord
|
DATABASE_URL: postgres://mangalord:mangalord@postgres:5432/mangalord
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Install build deps
|
# ubuntu-latest has node (so JS actions like checkout/cache run) but no
|
||||||
|
# Rust. We intentionally avoid `container: rust:1-slim` because act_runner
|
||||||
|
# runs JS actions with node *inside* the job container, and the slim Rust
|
||||||
|
# image ships no node (checkout would fail with exit 127).
|
||||||
|
- name: Install Rust + build deps
|
||||||
run: |
|
run: |
|
||||||
apt-get update
|
set -eu
|
||||||
apt-get install -y --no-install-recommends pkg-config libssl-dev ca-certificates
|
SUDO=""; [ "$(id -u)" = "0" ] || SUDO="sudo"
|
||||||
|
$SUDO apt-get update
|
||||||
|
$SUDO apt-get install -y --no-install-recommends pkg-config libssl-dev ca-certificates curl
|
||||||
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain stable
|
||||||
|
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
|
||||||
- name: Cache cargo registry and target
|
- name: Cache cargo registry and target
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user