mirror of
https://github.com/remoteintech/remote-jobs
synced 2024-12-26 04:13:10 +00:00
Add GitHub Actions integration for validation and tests (#1132)
This commit is contained in:
parent
721a77b0f3
commit
38749b980e
2 changed files with 26 additions and 5 deletions
26
.github/workflows/ci.yml
vendored
Normal file
26
.github/workflows/ci.yml
vendored
Normal file
|
@ -0,0 +1,26 @@
|
|||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v1
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm install
|
||||
|
||||
- name: Run validation
|
||||
run: npm run validate
|
||||
|
||||
- name: Run tests
|
||||
run: npm test
|
|
@ -1,5 +0,0 @@
|
|||
language: node_js
|
||||
|
||||
before_script: npm install
|
||||
|
||||
script: npm run validate && npm test
|
Loading…
Reference in a new issue