diff --git a/.github/workflows/nextjs.yml b/.github/workflows/nextjs.yml index a21d9dd..2d9650d 100644 --- a/.github/workflows/nextjs.yml +++ b/.github/workflows/nextjs.yml @@ -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: | @@ -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