Skip to content

feat: upstream push for artifacts #895

feat: upstream push for artifacts

feat: upstream push for artifacts #895

Workflow file for this run

on:
pull_request:
name: Test
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.20.x
- name: Checkout code
uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: |
~/go/pkg/mod
~/.cache/go-build
.bin
key: cache-${{ hashFiles('**/go.sum') }}-${{ hashFiles('.bin/*') }}
restore-keys: |
cache-
- name: Test
run: make test
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v1
if: always()
with:
files: test/test-results.xml
check_name: E2E - ${{matrix.suite}}
migrate:
runs-on: ubuntu-latest
env:
migrate_command: cd hack/migrate && go mod tidy && go run main.go --db-url 'postgres://postgres:postgres@localhost:5432/mission-control?sslmode=disable'
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.20.x
- name: Check out main branch
uses: actions/checkout@v3
with:
ref: main
- name: Apply base migrations
run: ${{ env.migrate_command }}
- name: Check out current branch
uses: actions/checkout@v3
- name: Apply new migrations
run: ${{ env.migrate_command }}
services:
postgres:
image: postgres:15.5@sha256:ee2f170c46df225310c923010230434e269238a65307539f9aced9da6ca44fad
ports:
- 5432:5432
env:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: mission-control
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5