diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..f51bad5 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,33 @@ +on: [push] +name: build +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + - name: build + uses: actions-rs/cargo@v1 + with: + command: build + - name: unit_tests + uses: actions-rs/cargo@v1 + with: + command: test + args: unit + - name: doc_tests + uses: actions-rs/cargo@v1 + with: + command: test + args: --doc + - name: Run rustfmt + uses: actions-rs/cargo@v1 + with: + command: fmt + args: --all -- --check + - name: lint + uses: actions-rs/clippy-check@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/security-audit.yml b/.github/workflows/security-audit.yml new file mode 100644 index 0000000..fa95789 --- /dev/null +++ b/.github/workflows/security-audit.yml @@ -0,0 +1,18 @@ +name: Security audit +on: + schedule: + - cron: "0 8 * * *" + push: + paths: + - "**/Cargo.*" + pull_request: + branches: + - main +jobs: + security_audit: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: actions-rs/audit-check@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }}