From 020cb144c1edf49c202ccf691801d91be2212390 Mon Sep 17 00:00:00 2001 From: Mirza Mohammad Azwad <50703605+mirzaazwad@users.noreply.github.com> Date: Fri, 3 Nov 2023 10:35:00 +0600 Subject: [PATCH] changes to workflow --- .github/ci.yml | 45 ---------------------------------- .github/{ => workflows}/cd.yml | 0 2 files changed, 45 deletions(-) delete mode 100644 .github/ci.yml rename .github/{ => workflows}/cd.yml (100%) diff --git a/.github/ci.yml b/.github/ci.yml deleted file mode 100644 index d72d297..0000000 --- a/.github/ci.yml +++ /dev/null @@ -1,45 +0,0 @@ -# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node -# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs - -name: Continuous Integration - -on: - push: - branches: ["main"] - pull_request: - branches: ["main"] - -jobs: - build: - - runs-on: ubuntu-latest - - strategy: - matrix: - node-version: [20.x] - - steps: - - uses: actions/checkout@v3 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} - cache: 'npm' - - run: npm ci - - run: npm run build --if-present - - - name: Set up mongo environment variables - - run: echo "_MONGO_URI=${{ vars._MONGO_URI }}" >> $GITHUB_ENV - - - name: Set up node environment variables - run: echo "_NODE_ENV=${{ vars._NODE_ENV }}" >> $GITHUB_ENV - - - name: Set up port environment variables - run: echo "_PORT=${{ vars._PORT }}" >> $GITHUB_ENV - - - name: Set up secrets - run: echo "_JWT_SECRET=${{ secrets._JWT_SECRET }}" >> $GITHUB_ENV - - - name: Run server tests - run: npm run test diff --git a/.github/cd.yml b/.github/workflows/cd.yml similarity index 100% rename from .github/cd.yml rename to .github/workflows/cd.yml