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"