Skip to content

dashboard refactor #1236

dashboard refactor

dashboard refactor #1236

Workflow file for this run

---
name: Test nitric run
on:
push:
branches:
- main
- develop
pull_request:
concurrency:
group: ci-local-tests-${{ github.ref_name }}
cancel-in-progress: true
env:
GOPROXY: https://proxy.golang.org
FATHOM_SITE: ${{ vars.FATHOM_SITE }}
jobs:
nitric-run:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
path: cli
- name: checkout the test app
uses: actions/checkout@v3
with:
repository: nitrictech/test-app
path: test-app
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: 1.19
- name: Build Nitric
run: |
cd ${{ github.workspace }}/cli
make build
mv bin/nitric $(go env GOPATH)/bin/nitric
- name: Run nitric-run in the background
run: |
cd ${{ github.workspace }}/test-app
nitric run --ci &
- name: Run Tests
run: |
cd ${{ github.workspace }}/test-app
make test
env:
BASE_URL: http://localhost:4001
TOPIC_BASE_URL: "http://localhost:4000/topic"
- name: Archive logfile
uses: actions/upload-artifact@v3
if: failure()
with:
name: nitric-run-logs
path: ${{ github.workspace }}/test-app/.nitric/*.log