Skip to content

Update Action and Dockerfile #2

Update Action and Dockerfile

Update Action and Dockerfile #2

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
IMAGE_NAME: api-infomatics-frs-helper
jobs:
build_and_test:
name: Build and Test
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- stable
steps:
- uses: actions/checkout@v3
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- run: cargo fmt --all -- --check
- run: cargo clippy -- -D warnings
- run: cargo build --release --verbose
- run: cargo test --verbose
docker:
runs-on: ubuntu-latest
needs: check

Check failure on line 35 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: 35, Col: 12): Job 'docker' depends on unknown job 'check'.
steps:
- uses: actions/checkout@v4
- name: Build Docker image
run: docker build . --file Dockerfile --tag $IMAGE_NAME --label "runnumber=${GITHUB_RUN_ID}"