diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index d3832c3..0000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: CI - -on: - push: - branches: ['*'] - pull_request: - branches: ['*'] - -jobs: - test: - strategy: - fail-fast: false - matrix: - pg: [14, 13, 12, 11, 10, 9.6, 9.5] - name: PostgreSQL ${{ matrix.pg }} - runs-on: ubuntu-latest - if: "! contains(toJSON(github.event.commits.*.message), '[skip-ci]')" - container: zilder/pg-ext-check - steps: - - run: pg-setup ${{ matrix.pg }} - - uses: actions/checkout@v2 - - run: build-check diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..aca8b0d --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,22 @@ +name: CI + +on: + push: + branches: + - master + - main + pull_request: + +jobs: + test: + strategy: + matrix: + pg: [15, 14, 13, 12, 11, 10] + name: 🐘 PostgreSQL ${{ matrix.pg }} + runs-on: ubuntu-latest + container: pgxn/pgxn-tools + steps: + - run: pg-start ${{ matrix.pg }} + - uses: actions/checkout@v2 + - run: pg-build-test + diff --git a/README.md b/README.md index 56ebb4e..a769ae8 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -![Build Status](https://github.com/adjust/pg-currency/workflows/CI/badge.svg) +[![CI](https://github.com/adjust/pg-currency/actions/workflows/main.yml/badge.svg)](https://github.com/adjust/pg-currency/actions/workflows/main.yml) # PG Currency