Merge pull request #1220 from flanksource/canary-conflict-update #1349
This file contains 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
on: | |
push: | |
tags: | |
- v* | |
branches: | |
- master | |
paths: | |
- "**.go" | |
- "Makefile" | |
- "**.yaml" | |
- "**.yml" | |
- "test/**" | |
pull_request: | |
paths: | |
- "**.go" | |
- "Makefile" | |
- "**.yaml" | |
- "**.yml" | |
- "test/**" | |
name: Postgres-and-Push-Test | |
permissions: | |
contents: read | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@bfdd3570ce990073878bf10f6b2d79082de49492 # v2.2.0 | |
with: | |
go-version: 1.19.x | |
- name: Checkout code | |
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0 | |
- uses: actions/cache@8492260343ad570701412c2f464a5877dc76bace # v2 | |
with: | |
path: | | |
~/go/pkg/mod | |
~/.cache/go-build | |
.bin | |
key: cache-${{ hashFiles('**/go.sum') }}-${{ hashFiles('.bin/*') }} | |
restore-keys: | | |
cache- | |
- run: make bin | |
- name: Test | |
run: ./test/e2e-postgres-push.sh |