Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI periodic testing #230

Merged
merged 21 commits into from Mar 5, 2021
Merged
Show file tree
Hide file tree
Changes from 17 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/workflows/ci.yaml
Expand Up @@ -5,6 +5,8 @@ on:
branches:
- master
pull_request:
schedule:
- cron: "0 14 * * 1" # Mondays at 2pm UTC

jobs:
cargo-test:
Expand Down Expand Up @@ -66,6 +68,11 @@ jobs:
path: Cargo.lock
- name: Cargo test
run: cargo test --features ${{ matrix.features }}
- name: Post to Slack on failure in main
if: failure() && github.event_name == 'schedule'
run: |
curl -L -X POST '${{ secrets.SLACK_WEBHOOK }}' \
-F "payload={\"text\": \"Failed a run of <$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID|$GITHUB_REPOSITORY>.\"}"

cargo-build:
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -108,6 +115,11 @@ jobs:
use-cross: true
command: build
args: --target ${{ matrix.target }} --features "beta blocking tls-rustls" --no-default-features
- name: Post to Slack on failure in main
if: failure() && github.event_name == 'schedule'
run: |
curl -L -X POST '${{ secrets.SLACK_WEBHOOK }}' \
-F "payload={\"text\": \"Failed a run of <$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID|$GITHUB_REPOSITORY>.\"}"

format:
runs-on: ubuntu-18.04
Expand Down
39 changes: 39 additions & 0 deletions .github/workflows/daily.yaml
@@ -0,0 +1,39 @@
name: Daily runs

# Run daily and also when Cargo.toml changes
on:
schedule:
- cron: "0 14 * * *" # Daily at 2pm UTC
push:
paths:
- "**/Cargo.toml"

jobs:
security-audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run audit checker
uses: actions-rs/audit-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Generate the Cargo.lock that will be used for the tests so we can upload it as an artifact
- run: cargo generate-lockfile
- uses: actions/upload-artifact@v2
with:
path: Cargo.lock
- name: Decrypt test keys
run: openssl aes-256-cbc -d -K ${{ secrets.OPENSSL_KEY }} -iv ${{ secrets.OPENSSL_IV }} -in tests/testkeys/iak-dev.pem.enc -out tests/testkeys/iak-dev.pem
- run: cargo test --all-features
giarc3 marked this conversation as resolved.
Show resolved Hide resolved
env:
IRONCORE_ENV: dev
- name: Post to Slack on failure
if: failure()
run: |
curl -L -X POST '${{ secrets.SLACK_WEBHOOK }}' \
-F "payload={\"text\": \"Failed a run of <$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID|$GITHUB_REPOSITORY>.\"}"
37 changes: 0 additions & 37 deletions .github/workflows/security-audit.yaml

This file was deleted.