diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..3267e45a --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,42 @@ +name: CI Checks + +on: + push: + branches: + - "master" + pull_request: + branches: + - "master" + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + unit-tests: + uses: carousell/cicd-workflows/.github/workflows/go-unit-tests.yml@main + with: + bu: cs + before_script: | + echo "----Enabling GoPath----" + env + printenv + secrets: inherit + + ci-common: + uses: carousell/cicd-workflows/.github/workflows/ci-common.yml@main + with: + bu: cs + secrets: inherit + + ci-status: + uses: carousell/cicd-workflows/.github/workflows/ci-status.yml@main + if: ${{ always() }} + needs: + - unit-tests + - ci-common + with: + bu: cs + secrets: inherit + + diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index f7121dc2..00000000 --- a/.travis.yml +++ /dev/null @@ -1,20 +0,0 @@ -language: go -sudo: false - -go: - - "1.17.x" - - "1.18.x" - - master - -install: true - -script: - - go get -u golang.org/x/lint/golint - - make ci - -matrix: - allow_failures: - - go: master - -after_success: - - bash <(curl -s https://codecov.io/bash)