From 9b8e322c80fead70dcf95e214b50c4f4b2a2ac48 Mon Sep 17 00:00:00 2001 From: Casey Waldren Date: Fri, 31 May 2024 12:09:35 -0700 Subject: [PATCH] add ci --- .github/workflows/ldevents-ci.yml | 38 +++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/ldevents-ci.yml diff --git a/.github/workflows/ldevents-ci.yml b/.github/workflows/ldevents-ci.yml new file mode 100644 index 00000000..5f1bc0d1 --- /dev/null +++ b/.github/workflows/ldevents-ci.yml @@ -0,0 +1,38 @@ +name: Build and Test ldevents +on: + push: + branches: [ 'v7', 'feat/**' ] + paths-ignore: + - '**.md' # Don't run CI on markdown changes. + pull_request: + branches: [ 'v7', 'feat/**' ] + paths-ignore: + - '**.md' + +jobs: + go-versions: + uses: ./.github/workflows/go-versions.yml + + # Runs the common tasks (unit tests, lint, contract tests) for each Go version. + test-linux: + name: ${{ format('ldevents Linux, Go {0}', matrix.go-version) }} + needs: go-versions + strategy: + # Let jobs fail independently, in case it's a single version that's broken. + fail-fast: false + matrix: + go-version: ${{ fromJSON(needs.go-versions.outputs.matrix) }} + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Setup Go ${{ inputs.go-version }} + uses: actions/setup-go@v5 + with: + go-version: ${{ matrix.go-version }} + - uses: ./.github/actions/unit-tests + with: + lint: 'true' + test-target: ldevents-test + - uses: ./.github/actions/coverage + with: + enforce: 'false'