Skip to content

Commit

Permalink
add basic regression action
Browse files Browse the repository at this point in the history
  • Loading branch information
august-zp authored and mingzong-sdm committed Jun 9, 2021
1 parent 93dc28c commit e6733a0
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/regression.yml
@@ -0,0 +1,42 @@
## This is the basic regression action for PolarDB.
name: PolarDB regression

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Setup Perl environment
uses: shogo82148/actions-setup-perl@v1.12.2

- name: Restore install dependencies from cache
uses: actions/cache@v2
id: cache-perl-env
with:
path: /opt/hostedtoolcache/perl
key: builddeps-${{ hashFiles('**/Build.PL') }}
restore-keys: |
builddeps-
- name: Install perl modules
if: steps.cache-perl-env.outputs.cache-hit != 'true'
run: cpan -i IPC::Run Test::More Time::HiRes

- name: Install dependencies
run: sudo apt-get install -y libprotobuf-dev protobuf-compiler libzstd-dev libssl-dev

- name: configure
run: ./configure --enable-tap-tests --with-python --prefix=$HOME/polardb/polardbhome
- name: build
run: bash ./build.sh repeat
- name: make check
run: make check
- name: make checkdma
run: make checkdma

0 comments on commit e6733a0

Please sign in to comment.