From e4113a90af3c2de2b57800a99a21410978590cd1 Mon Sep 17 00:00:00 2001 From: Yuqi Du Date: Mon, 27 Nov 2023 17:00:03 -0800 Subject: [PATCH] modify workflow --- .github/workflows/test.yml | 85 -------------------------------------- 1 file changed, 85 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 528a732..e865c93 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,89 +6,6 @@ permissions: contents: read jobs: - test-discord-bot: - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - node: [16] - os: [ubuntu-20.04] - name: Discord Bot Sample App - steps: - ## Set up Stargate - - name: disable and stop mono-xsp4.service - run: | - sudo kill -9 $(sudo lsof -t -i:8084) - - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b - with: - repository: stargate/stargate-mongoose - path: stargate-mongoose - ref: main - - name: Set up JSON API - run: | - chmod +x bin/start_json_api.sh - bin/start_json_api.sh - working-directory: stargate-mongoose - - name: Wait for services - run: | - while ! nc -z localhost 8181; do sleep 1; done - while ! nc -z localhost 8081; do sleep 1; done - working-directory: stargate-mongoose - ## Set up and run discord bot sample app tests - - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2 - - name: Setup node - uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3.1.1 - with: - node-version: ${{ matrix.node }} - - - run: npm install - working-directory: discord-bot - - run: npm run lint - working-directory: discord-bot - - run: npm test - working-directory: discord-bot - test-ecommerce: - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - node: [16] - os: [ubuntu-20.04] - name: Ecommerce Sample App - steps: - ## Set up Stargate - - name: disable and stop mono-xsp4.service - run: | - sudo kill -9 $(sudo lsof -t -i:8084) - - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b - with: - repository: stargate/stargate-mongoose - path: stargate-mongoose - ref: main - - name: Set up JSON API - run: | - chmod +x bin/start_json_api.sh - bin/start_json_api.sh - working-directory: stargate-mongoose - - name: Wait for services - run: | - while ! nc -z localhost 8181; do sleep 1; done - while ! nc -z localhost 8081; do sleep 1; done - working-directory: stargate-mongoose - ## Set up and run ecommerce sample app tests - - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2 - - name: Setup node - uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3.1.1 - with: - node-version: ${{ matrix.node }} - - - run: npm install - working-directory: netlify-functions-ecommerce - - run: npm run lint - working-directory: netlify-functions-ecommerce - - run: npm test - working-directory: netlify-functions-ecommerce - test-photography: runs-on: ${{ matrix.os }} strategy: @@ -130,5 +47,3 @@ jobs: working-directory: photography-site-demo.js - run: npm test working-directory: photography-site-demo.js - -