Skip to content

Sent current date's guessing game related date from the table avoiding random generation #424

Sent current date's guessing game related date from the table avoiding random generation

Sent current date's guessing game related date from the table avoiding random generation #424

Workflow file for this run

name: CI
on: [ push, pull_request ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 18.13.0 ]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm i
- name: Prettier
run: npm run format:check
- name: ESLint
run: npm run lint:check
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Run Docker containers
run: |
docker-compose -f docker-compose-ci.yml up -d
docker-compose -f docker-compose-ci.yml ps
docker volume ls
docker inspect --format '{{json .Mounts}}' ielts-gibberish-test-postgres
- name: Create environment variables
run: npm run create:env
- name: Database Tables' modification
run: npm run migration:run:local-test
- name: Automated Test
run: npm run test
- name: Build
run: npm run build
- name: Clean Docker containers
run: |
docker-compose -f docker-compose-ci.yml stop
docker-compose -f docker-compose-ci.yml rm -f
docker-compose -f docker-compose-ci.yml down --volumes