From 36d73b55e545a9738b7dc1af89c368b528762be1 Mon Sep 17 00:00:00 2001 From: Jye Cusch Date: Mon, 16 Sep 2024 08:56:09 +1000 Subject: [PATCH 1/2] docs: make lang options consistent for all examples --- src/pages/websockets.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/websockets.mdx b/src/pages/websockets.mdx index a48f8abad..c041050dd 100644 --- a/src/pages/websockets.mdx +++ b/src/pages/websockets.mdx @@ -230,7 +230,7 @@ socket.onDisconnect((ctx) async { -```typescript +```javascript import { websocket, kv } from '@nitric/sdk' // Initialize KV store for connections and a WebSocket From 365a7cd9ee1eb11af5a620fd0897103613e0f943 Mon Sep 17 00:00:00 2001 From: David Moore Date: Mon, 16 Sep 2024 09:13:09 +1000 Subject: [PATCH 2/2] update deprecated actions --- .github/workflows/test.yaml | 62 ++++++++++++++++++------------------- 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 4c245c4a3..59ff83951 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -65,7 +65,7 @@ jobs: start: yarn start wait-on: 'http://localhost:3000' - name: Upload screenshots - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 if: failure() with: name: cypress-screenshots @@ -96,39 +96,39 @@ jobs: start: yarn start wait-on: 'http://localhost:3000' - name: Upload screenshots - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 if: failure() with: name: cypress-screenshots path: cypress/screenshots test-seo: - runs-on: ubuntu-latest - needs: [tests] - steps: - - name: Checkout - uses: actions/checkout@v2 - - name: Restore Build - uses: actions/cache@v2 - id: restore-build - with: - path: | - .next - public - key: ci-docs-test-${{ github.sha }} - - name: Cypress tests 🧪 - uses: cypress-io/github-action@v5 - with: - headless: true - config: video=false - browser: chrome - spec: cypress/e2e/seo.cy.ts - build: node scripts/build-pages-fixture.js - start: yarn start - wait-on: 'http://localhost:3000' - - name: Upload screenshots - uses: actions/upload-artifact@v2 - if: failure() - with: - name: cypress-screenshots - path: cypress/screenshots + runs-on: ubuntu-latest + needs: [tests] + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Restore Build + uses: actions/cache@v2 + id: restore-build + with: + path: | + .next + public + key: ci-docs-test-${{ github.sha }} + - name: Cypress tests 🧪 + uses: cypress-io/github-action@v5 + with: + headless: true + config: video=false + browser: chrome + spec: cypress/e2e/seo.cy.ts + build: node scripts/build-pages-fixture.js + start: yarn start + wait-on: 'http://localhost:3000' + - name: Upload screenshots + uses: actions/upload-artifact@v4 + if: failure() + with: + name: cypress-screenshots + path: cypress/screenshots