Skip to content

Commit

Permalink
Align CI workflow (#16)
Browse files Browse the repository at this point in the history
Align CI workflow

We want an improved aligned workflow setup for all
our postgres extensions.
This workflow will run tests after pushing commits into
the main branch and into any open pull request's branch.
It runs tests on PostgreSQL Versions 10 to 15.

One important thing here is that the workflow uses pgxn/pgxn-tools
Docker image. It installs specified version of PostgreSQL and run tests
by pg-build-test, which runs make installcheck under the hood.
  • Loading branch information
rapimo authored May 31, 2023
1 parent 182a849 commit fe40fcd
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 23 deletions.
22 changes: 0 additions & 22 deletions .github/workflows/ci.yml

This file was deleted.

22 changes: 22 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -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

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit fe40fcd

Please sign in to comment.