Skip to content

ci: init

ci: init #1

Workflow file for this run

on:
push:
branches:
- main
pull_request:
branches:
- main
name: ci
env:
RUST_BACKTRACE: 1
# By default depandabot only receives read permissions. Explicitly give it write
# permissions which is needed by the ouzi-dev/commit-status-updater task.
#
# Updating status is relatively safe (doesnt modify source code) and caution
# should we taken before adding more permissions.
permissions:
statuses: write
jobs:
test:

Check failure on line 23 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / ci

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 23, Col: 3): The workflow must contain at least one job with no dependencies.
runs-on: ${{ matrix.os }}
needs: env
strategy:
fail-fast: false
matrix:
rust: [stable]
os: [ubuntu-latest]
env: [default]
steps:
- uses: actions/checkout@v4
- name: Install rust toolchain
id: toolchain
run: |
rustup toolchain install ${{ matrix.rust }}
rustup override set ${{ matrix.rust }}
rustup toolchain install ${{ matrix.rust }}
- name: Run cargo build
run: |
cargo build --tests
- name: Run cargo test
run: |
cargo test