From 3a320f5f8029d8bf148aec15315a619bbf9f9c00 Mon Sep 17 00:00:00 2001 From: wackbyte Date: Fri, 19 Jan 2024 16:18:12 -0500 Subject: [PATCH] add Forgejo Actions workflow --- .forgejo/workflows/ci.yml | 61 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 .forgejo/workflows/ci.yml diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml new file mode 100644 index 0000000..8ab6012 --- /dev/null +++ b/.forgejo/workflows/ci.yml @@ -0,0 +1,61 @@ +name: CI + +on: + push: + branches: + - trunk + pull_request: + workflow_dispatch: + #schedule: + # - cron: '0 8 * * 0' + +permissions: + contents: read + +jobs: + test-install: + name: Install test for Rust ${{matrix.rust}} + runs-on: docker + container: + image: ubuntu:latest + strategy: + fail-fast: false + matrix: + rust: + - nightly + - beta + - stable + - 1.62.0 + - stable 18 months ago + - stable minus 8 releases + - 1.0.0 + timeout-minutes: 45 + steps: + - uses: https://code.forgejo.org/actions/checkout@v4 + + - name: Run test + uses: ./tests/install + with: + toolchain: ${{matrix.rust}} + + test-default: + name: Default test + runs-on: docker + container: + image: ubuntu:latest + steps: + - uses: https://code.forgejo.org/actions/checkout@v4 + + - name: Run test + uses: ./tests/default + + test-override: + name: Override test + runs-on: docker + container: + image: ubuntu:latest + steps: + - uses: https://code.forgejo.org/actions/checkout@v4 + + - name: Run test + uses: ./tests/override