Skip to content

Commit

Permalink
feat: update ci to fetch data with node backend
Browse files Browse the repository at this point in the history
  • Loading branch information
ajhenry committed Jan 29, 2024
1 parent 0099733 commit 358113b
Showing 1 changed file with 6 additions and 19 deletions.
25 changes: 6 additions & 19 deletions .github/workflows/nextjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,26 +34,13 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go 1.x
uses: actions/setup-go@v4
- name: Fetch Metrics
uses: actions/setup-node@v4
with:
go-version: ^1.19
- name: Get dependencies
run: |
cd backend
go get -v -t -d ./...
if [ -f Gopkg.toml ]; then
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
dep ensure
fi
- name: Build Go
run: make build
# - name: Test
# run: make test
- name: Run Go program and save output
id: run
node-version: "20.x"
run: |
$PWD/backend/bin/metrics
npm i
npm start
- name: Detect package manager
id: detect-package-manager
run: |
Expand All @@ -76,7 +63,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "16"
node-version: "20.x"
cache: ${{ steps.detect-package-manager.outputs.manager }}
cache-dependency-path: ${{ steps.detect-package-manager.outputs.cache-dependency-path }}
- name: Setup Pages
Expand Down

0 comments on commit 358113b

Please sign in to comment.