name: SCC

on:
  push:
    branches: [main]
  pull_request:
    branches: [main]

env:
  CARGO_TERM_COLOR: always

jobs:
  build:
    runs-on: ubuntu-latest
    timeout-minutes: 30
    steps:
      - uses: actions/checkout@v2
      - name: Debug - Build
        run: cargo build --verbose
      - name: Debug -Run unit tests
        run: cargo test --verbose
      - name: Debug - Run scc-tests
        run: cargo test -p scc-tests
      - name: Release - Build
        run: cargo build --release --verbose
      - name: Release - Run unit tests
        run: cargo test --release --verbose
      - name: Release - Run scc-tests
        run: cargo test --release -p scc-tests
