This repository was archived by the owner on Apr 17, 2025. It is now read-only.
npm(deps): bump mongoose from 6.0.12 to 8.13.2 #1144
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [dev] | |
| pull_request: | |
| branches: [dev] | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| name: Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out the repo | |
| uses: actions/checkout@v2 | |
| - name: Use Node.js 16.x | |
| uses: actions/setup-node@v2.4.1 | |
| with: | |
| node-version: "16.x" | |
| - run: npm install npm -g | |
| #- uses: webfactory/ssh-agent@v0.5.3 | |
| #with: | |
| #ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Run Tests | |
| run: npm run test | |
| build: | |
| name: Docker Hub | |
| runs-on: ubuntu-latest | |
| needs: test | |
| if: github.event_name == 'push' | |
| steps: | |
| - name: Check out the repo | |
| uses: actions/checkout@v2 | |
| - name: Log in to Docker Hub | |
| uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 | |
| with: | |
| username: ${{ secrets.DOCKER_USERNAME }} | |
| password: ${{ secrets.DOCKER_PASSWORD }} | |
| - name: Extract metadata (tags, labels) for Docker | |
| id: meta | |
| uses: docker/metadata-action@548e2346a9987b56d8a4104fe776321ff8e23440 | |
| with: | |
| images: puneetgopinath/discord_welcome-bot | |
| - name: Build and push Docker image | |
| uses: docker/build-push-action@a66e35b9cbcf4ad0ea91ffcaf7bbad63ad9e0229 | |
| with: | |
| context: . | |
| push: true | |
| tags: ${{ steps.meta.outputs.tags }} | |
| labels: ${{ steps.meta.outputs.labels }} |