Skip to content

bugfix

bugfix #32

Workflow file for this run

name: rust tests
on:
push:
branches: [ "master", "dev" ]
pull_request:
branches: [ "master", "dev" ]
env:
CARGO_TERM_COLOR: always
DATABASE_URL: ${{ secrets.DATABASE_URL }}
OPENAI_API_KEY: ${{ secrests.OPENAI_API_KEY }}

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

View workflow run for this annotation

GitHub Actions / rust tests

Invalid workflow file

The workflow is not valid. .github/workflows/rust.yml (Line: 10, Col: 19): Unrecognized named-value: 'secrests'. Located at position 1 within expression: secrests.OPENAI_API_KEY
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Format
run: |
cargo fmt
git config --global user.name 'github-actions'
git config --global user.email 'github-actions@github.com'
git add -u
git commit -m "Apply cargo fmt" || echo "No changes to commit"
git push
- name: Check formatting
run: |
cargo fmt -- --check
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose