Skip to content

Fixed workflows

Fixed workflows #5

Workflow file for this run

name: Build Project
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
CARGO_TERM_COLOR: always
runs-on: ubuntu-latest

Check failure on line 12 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / Build Project

Invalid workflow file

The workflow is not valid. .github/workflows/build.yml (Line: 12, Col: 1): Unexpected value 'runs-on' .github/workflows/build.yml (Line: 16, Col: 5): Required property is missing: runs-on
jobs:
prepare:
name: Prepare
steps:
- uses: actions/checkout@v4
- name: Create environment file
run: cp .env.example .env
- name: Prepare database
run: |
cargo install sqlx-cli
sqlx database create
sqlx migrate run
cargo sqlx prepare
- name: Save prepared database
uses: actions/upload-artifact@v3
with:
name: prepared-database
path: migrations
build:
steps:
- uses: actions/checkout@v4
- name: Download prepared database
uses: actions/download-artifact@v3
with:
name: prepared-database
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose