Skip to content

start webapp + Test v5 #25

start webapp + Test v5

start webapp + Test v5 #25

Workflow file for this run

---
name: Build and test
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
- name: Install dependencies
run: yarn install
- name: Installing ESLint 8.45.0
run: npm install eslint@8.45.0
- name: Check errors in code
run: npx eslint . --no-error-on-unmatched-pattern
- name: Lint the code
run: yarn lint
- name: Log in to Docker Hub.
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Build Docker image
uses: docker/build-push-action@v6
with:
push: true
tags: sennedemaegd/webapp:latest
- name: Start webapp before tests
run: docker compose up -d webapp database