Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/continuous-deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Name of workflow
name: Development workflow

# When workflow is triggered
on:
- push

# Jobs to carry out
jobs:
deploy:
# Operating system to run job on
runs-on: ubuntu-latest

# Steps in job
steps:
# Get code from repo
- name: Checkout code
uses: actions/checkout@v1
# Install NodeJS
- name: Use Node.js 14.17.6
uses: actions/setup-node@v1
with:
node-version: 14.17.6
# Run npm install and build on our code
- run: npm install
- run: npm run build
# Deploy to Netlify using our dev secrets
- name: Deploy to netlify
uses: netlify/actions/cli@master
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
with:
args: deploy --dir=build --prod
secrets: '["NETLIFY_AUTH_TOKEN", "NETLIFY_SITE_ID"]
22 changes: 22 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Continuous Integration

on:
- push

jobs:
buildAndTest:
name: Build and Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1

- name: Install dependencies
run: npm install

- name: Build
# https://github.com/karma-runner/karma-chrome-launcher/issues/154#issuecomment-334526843
# NPM rebuild is needed when deploying to CI because it recompiles the C++ addons for Node JS
run: npm run build

- name: Test
run: npm run test
30 changes: 0 additions & 30 deletions .travis.yml

This file was deleted.

Loading