mirror of
https://github.com/rjNemo/hiring-without-whiteboards
synced 2026-06-06 02:26:45 +00:00
Add github action for CI (#1102)
* Add github action for CI * Update bors, remove .travis.yml, relax node version
This commit is contained in:
parent
33094ca694
commit
2512c3fcde
5 changed files with 32 additions and 30 deletions
29
.github/workflows/node.js.yml
vendored
Normal file
29
.github/workflows/node.js.yml
vendored
Normal file
|
|
@ -0,0 +1,29 @@
|
||||||
|
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
|
||||||
|
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
|
||||||
|
|
||||||
|
name: Node.js CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ master, staging, trying ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ master, staging, trying ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
node-version: [12.x, 14.x, 16.x]
|
||||||
|
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
|
uses: actions/setup-node@v2
|
||||||
|
with:
|
||||||
|
node-version: ${{ matrix.node-version }}
|
||||||
|
- run: yarn install --frozen-lockfile
|
||||||
|
- run: yarn test
|
||||||
2
.nvmrc
2
.nvmrc
|
|
@ -1 +1 @@
|
||||||
11.10.0
|
lts/*
|
||||||
|
|
|
||||||
25
.travis.yml
25
.travis.yml
|
|
@ -1,25 +0,0 @@
|
||||||
---
|
|
||||||
language: node_js
|
|
||||||
node_js:
|
|
||||||
- "11"
|
|
||||||
|
|
||||||
sudo: false
|
|
||||||
|
|
||||||
cache:
|
|
||||||
yarn: true
|
|
||||||
|
|
||||||
before_install:
|
|
||||||
- curl -o- -L https://yarnpkg.com/install.sh | bash
|
|
||||||
- export PATH=$HOME/.yarn/bin:$PATH
|
|
||||||
|
|
||||||
install:
|
|
||||||
- yarn install
|
|
||||||
|
|
||||||
script:
|
|
||||||
- yarn test
|
|
||||||
|
|
||||||
branches:
|
|
||||||
only:
|
|
||||||
- master
|
|
||||||
- staging # This is where pull requests from "bors r+" are built.
|
|
||||||
- trying # This is where pull requests from "bors try" are built.
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
status = [
|
status = [
|
||||||
"continuous-integration/travis-ci/push"
|
"test"
|
||||||
]
|
]
|
||||||
|
delete_merged_branches = true
|
||||||
# Uncomment this to use a two hour timeout.
|
# Uncomment this to use a two hour timeout.
|
||||||
# The default is one hour.
|
# The default is one hour.
|
||||||
#timeout_sec = 7200
|
#timeout_sec = 7200
|
||||||
|
|
|
||||||
|
|
@ -3,9 +3,6 @@
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"description": "Companies that don't have a broken hiring process",
|
"description": "Companies that don't have a broken hiring process",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"engines": {
|
|
||||||
"node": "11.x"
|
|
||||||
},
|
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "node ./node_modules/remark-cli/cli.js README.md -f"
|
"test": "node ./node_modules/remark-cli/cli.js README.md -f"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue