Skip to content

Merge pull request #79 from tburny/add-do-ddd #210

Merge pull request #79 from tburny/add-do-ddd

Merge pull request #79 from tburny/add-do-ddd #210

Workflow file for this run

name: CI
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
pull_request:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains the jobs "test" and "build" executed in parallel
test:
# The type of runner that the job will run on
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./app
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v3
- name: Use Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: '16'
- name: Install, build and test
run: |
yarn
yarn run build
yarn run ci:coverage
- name: Coveralls
uses: coverallsapp/github-action@master
with:
path-to-lcov: './app/coverage/lcov.info'
github-token: ${{ secrets.GITHUB_TOKEN }}
base-path: 'app'
env:
NODE_COVERALLS_DEBUG: 1
build-and-deploy:
needs: [ test ]
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./app
steps:
- uses: actions/checkout@v3
- name: Use Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: '16'
- name: Install and build
run: |
yarn
yarn run build
- name: Deploy to Netlify
uses: nwtgck/actions-netlify@v2.0
with:
publish-dir: './app/public'
production-branch: master
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-message: "Deploy from GitHub Actions"
enable-pull-request-comment: false
enable-commit-comment: true
overwrites-pull-request-comment: true
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
timeout-minutes: 2