diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b1e6b5d..bdc031f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,10 +22,6 @@ jobs: goos: darwin goarch: arm64 artifact: jernel-darwin-arm64 - - os: windows-latest - goos: windows - goarch: amd64 - artifact: jernel-windows-amd64.exe runs-on: ${{ matrix.os }} steps: - name: Checkout @@ -34,7 +30,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v5 with: - go-version: "1.23" + go-version: "1.24" - name: Build env: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..4df0d3f --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,38 @@ +name: Test + +on: + pull_request: + branches: [main] + push: + branches: [main] + +jobs: + test: + name: Run Tests + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Go + uses: actions/setup-go@v5 + with: + go-version: "1.24" + + - name: Run tests + run: go test ./... -v -race + + build: + name: Verify Build + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Go + uses: actions/setup-go@v5 + with: + go-version: "1.24" + + - name: Build + run: go build -o jernel . diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index 17c1b93..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,32 +0,0 @@ -stages: - - test - - build - -variables: - GO_VERSION: "1.24" - -# Run tests on merge requests and main branch pushes -test: - stage: test - image: golang:${GO_VERSION} - script: - - go mod download - - go test ./... -v -race - rules: - - if: $CI_PIPELINE_SOURCE == "merge_request_event" - - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH - -# Build binary to verify compilation succeeds -build: - stage: build - image: golang:${GO_VERSION} - script: - - go mod download - - go build -o jernel . - artifacts: - paths: - - jernel - expire_in: 1 week - rules: - - if: $CI_PIPELINE_SOURCE == "merge_request_event" - - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH