Skip to content

test

test #14

Workflow file for this run

name: Test
on:
push:
branches: [ ci ]
pull_request:
branches: [ ci ]
env:
CARGO_TERM_COLOR: always
GITHUB_ACTIONS: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build
run: ./build-in-docker.sh
unit-tests:
needs: [ build ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Unit tests
run: cargo test --all
integration-tests:
needs: [ build ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Integration tests
run: cargo run -p integration-tests
push:
needs: [ unit-tests, integration-tests ]
runs-on: ubuntu-latest
steps:
- name: Commit & Push changes
uses: actions-js/push@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}