ci: revert goreleaser version #1439
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
--- | ||
name: Test nitric run | ||
# disabled test for now | ||
on: false | ||
# 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.21 | ||
- 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 |