Skip to content

Commit

Permalink
Merge pull request #41 from amosproj/ci
Browse files Browse the repository at this point in the history
Continous integration
  • Loading branch information
CatoLeanTruetschel authored May 4, 2021
2 parents 23b766c + 9f90abd commit 764de61
Show file tree
Hide file tree
Showing 4 changed files with 80 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
*.jsx text eol=lf
*.ts text eol=lf
*.tsx text eol=lf
*.yml text eol=lf
21 changes: 21 additions & 0 deletions .github/workflows/frontend-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Frontend build
on: [push]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
node-version: [10.x, 12.x, 14.x, 15.x]
env:
working-directory: ./frontend
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm i
working-directory: ${{ env.working-directory }}
- run: npm run build
working-directory: ${{ env.working-directory }}
36 changes: 36 additions & 0 deletions .github/workflows/frontend-tests-e2e.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Frontend e2e tests
on: [push]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
node-version: [10.x, 12.x, 14.x]
browser: [chrome, firefox]
include:
- os: windows-latest
node-version: 10.x
browser: edge
- os: windows-latest
node-version: 12.x
browser: edge
- os: windows-latest
node-version: 14.x
browser: edge
env:
working-directory: ./frontend
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Cypress run
uses: cypress-io/github-action@v2
with:
start: npm run start
wait-on: 'http://localhost:3000'
wait-on-timeout: 120
browser: ${{ matrix.browser }}
working-directory: ${{ env.working-directory }}
22 changes: 22 additions & 0 deletions .github/workflows/frontend-tests-unit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Frontend unit tests
on: [push]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
node-version: [10.x, 12.x, 14.x]
env:
working-directory: ./frontend
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Cypress run
uses: cypress-io/github-action@v2
with:
command: npm run cy:run:unit
working-directory: ${{ env.working-directory }}

0 comments on commit 764de61

Please sign in to comment.