Skip to content

Commit

Permalink
Migrate from travis to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
df7cb committed May 18, 2021
1 parent 3ed0eae commit 0c0783b
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 41 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/regression.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Build

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest

defaults:
run:
shell: sh

strategy:
matrix:
pgversion: [ 9.5, 9.6, 10, 11, 12, 13, 14 ]

env:
PGVERSION: ${{ matrix.pgversion }}

steps:
- name: checkout
uses: actions/checkout@v2

- name: install pg
run: |
sudo /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -v $PGVERSION -p -i
sudo -u postgres createuser -s "$USER"
- name: build
run: |
make PROFILE="-Werror"
sudo -E make install
- name: test
run: |
make installcheck
- name: show regression diffs
if: ${{ failure() }}
run: |
cat regression.diffs
39 changes: 0 additions & 39 deletions .travis.yml

This file was deleted.

2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ pre-built grammar files are used if only bison 2 is available).

[Changelog](NEWS.md)

[![Build Status](https://travis-ci.org/df7cb/postgresql-unit.svg?branch=master)](https://travis-ci.org/df7cb/postgresql-unit)

Features
--------

Expand Down

0 comments on commit 0c0783b

Please sign in to comment.