Skip to content

feat: add GitHub Actions workflow #2

feat: add GitHub Actions workflow

feat: add GitHub Actions workflow #2

Workflow file for this run

name: Rust
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_HOME: ${{ github.workspace }}/.cargohome
CARGO_TERM_COLOR: always
jobs:
rocket_oauth2:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
key: ${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}
path:
- ${{ env.CARGO_HOME }}/registry/index/

Check failure on line 22 in .github/workflows/rust.yml

View workflow run for this annotation

GitHub Actions / Rust

Invalid workflow file

The workflow is not valid. .github/workflows/rust.yml (Line: 22, Col: 11): A sequence was not expected .github/workflows/rust.yml (Line: 38, Col: 11): A sequence was not expected
- ${{ env.CARGO_HOME }}/registry/cache/
- ${{ env.CARGO_HOME }}/git/db/
- name: Build
run: cargo build --workspace
- name: Run tests
run: cargo test --workspace
rocket_tls_compat_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
key: ${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}
path:
- ${{ env.CARGO_HOME }}/registry/index/
- ${{ env.CARGO_HOME }}/registry/cache/
- ${{ env.CARGO_HOME }}/git/db/
- name: Build
run: cd rocket_tls_compat_check && cargo build --workspace
- name: Run tests
run: cd rocket_tls_compat_check && cargo test --workspace