Enable GitHub actions #2
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Tests | |
| on: | |
| push: | |
| # This should disable running the workflow on tags, according to the | |
| # on.<push|pull_request>.<branches|tags> GitHub Actions docs. | |
| branches: | |
| - "*" | |
| pull_request: | |
| concurrency: | |
| # Cancel older requests of the same workflow in the same branch. | |
| group: ${{ github.workflow }}-${{ github.ref_name }} | |
| cancel-in-progress: true | |
| jobs: | |
| tests: | |
| runs-on: ubuntu-latest | |
| container: pgxn/pgxn-tools | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| pg: | |
| - 19 | |
| - 18 | |
| - 17 | |
| - 16 | |
| - 15 | |
| - 14 | |
| - 13 | |
| steps: | |
| - name: Start PostgreSQL ${{ matrix.pg }} | |
| run: pg-start ${{ matrix.pg }} | |
| - name: Check out the repo | |
| uses: actions/checkout@v3 | |
| - name: install build-dependencies | |
| run: apt-get update && apt-get install -y libscrypt-dev libargon2-dev libssl-dev | |
| - name: Test on PostgreSQL ${{ matrix.pg }} | |
| run: | | |
| PROFILE=" | |
| -D_PWHASH_LIBSCRYPT_SUPPORT=1 | |
| -D_PWHASH_ARGON2_OSSL_SUPPORT=1 | |
| -D_PWHASH_CRYPT_SCRYPT_SUPPORT=1 | |
| -D_PWHASH_CRYPT_YESCRYPT_SUPPORT=1 | |
| " pg-build-test |