From 8b410a492a25a4d48a0d918f8a13d786e823b9aa Mon Sep 17 00:00:00 2001 From: Quinn Date: Mon, 14 Apr 2025 19:11:20 +0200 Subject: [PATCH] rename `validate` to `ci/bin`, and split up workflows This is mainly to improve the clairity of the workflows, also allowing them to be used for the different "badges", showing the state of each. --- .../workflows/{validate.yaml => ci-bin.yaml} | 7 +++---- .github/workflows/ci-lint.yaml | 17 +++++++++++++++ .github/workflows/ci-tests.yaml | 21 +++++++++++++++++++ 3 files changed, 41 insertions(+), 4 deletions(-) rename .github/workflows/{validate.yaml => ci-bin.yaml} (77%) create mode 100644 .github/workflows/ci-lint.yaml create mode 100644 .github/workflows/ci-tests.yaml diff --git a/.github/workflows/validate.yaml b/.github/workflows/ci-bin.yaml similarity index 77% rename from .github/workflows/validate.yaml rename to .github/workflows/ci-bin.yaml index 9392060..abf55c3 100644 --- a/.github/workflows/validate.yaml +++ b/.github/workflows/ci-bin.yaml @@ -1,4 +1,4 @@ -name: validate +name: bin on: push: branches: @@ -7,8 +7,7 @@ on: branches: - '**' jobs: - # TODO: add unit test job here - compile-and-lint: + compile: runs-on: ubuntu-latest container: image: ghcr.io/thepigeongenerator/mcaselector-lite:latest @@ -20,4 +19,4 @@ jobs: steps: - uses: actions/checkout@v4 - run: make compile ARCH=${{matrix.arch}} -j - # TODO: add linting checking here + diff --git a/.github/workflows/ci-lint.yaml b/.github/workflows/ci-lint.yaml new file mode 100644 index 0000000..0bdf641 --- /dev/null +++ b/.github/workflows/ci-lint.yaml @@ -0,0 +1,17 @@ +name: lint +on: + push: + branches: + - '**' + pull_request: + branches: + - '**' +jobs: + compile: + runs-on: ubuntu-latest + container: + image: ghcr.io/thepigeongenerator/mcaselector-lite:latest + steps: + # TODO: add linting checking here + - run: echo "TODO" + diff --git a/.github/workflows/ci-tests.yaml b/.github/workflows/ci-tests.yaml new file mode 100644 index 0000000..6eaee55 --- /dev/null +++ b/.github/workflows/ci-tests.yaml @@ -0,0 +1,21 @@ +name: tests +on: + push: + branches: + - '**' + pull_request: + branches: + - '**' +jobs: + execute-tests: + runs-on: ubuntu-latest + container: + image: ghcr.io/thepigeongenerator/mcaselector-lite:latest + strategy: + matrix: + arch: + - linux-x86_64 + - win-x86_64 + steps: + # TODO: add unit test job here + - run: echo "TODO"