Skip to content

Integration tests

Integration tests #18

name: Integration tests
on:
workflow_dispatch:
workflow_call:
secrets:
SSH_KEY:
required: true
KNOWN_HOSTS:
required: true
GTLBSTR_TEST_GITLAB_TOKEN:
required: true
jobs:
integration_tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_KEY }}
known_hosts: ${{ secrets.KNOWN_HOSTS }}
- name: Run tests
run: cargo test --features=integration_tests
env:
GTLBSTR_TEST_GITLAB_TOKEN: ${{ secrets.GTLBSTR_TEST_GITLAB_TOKEN }}