Skip to content

Commit

Permalink
Added GitHub actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
vrza committed Jan 13, 2022
1 parent 25f764c commit 5d4d553
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: build

on: [push, pull_request]

jobs:

build:

strategy:
matrix:
virtual-environment: ['ubuntu-latest', 'macos-latest', 'windows-latest']
node: [8, 10, 12, 14, 16, 17]

runs-on: ${{ matrix.virtual-environment }}

steps:
- name: Configure git (Windows specific)
if: matrix.virtual-environment == 'windows-latest'
run: git config --global core.autocrlf false

- name: Checkout
uses: actions/checkout@v2

- name: Add msbuild to PATH (Windows specific)
if: matrix.virtual-environment == 'windows-latest'
uses: microsoft/[email protected]

- name: Setup Node.js ${{ matrix.node }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}

- name: Install dependencies and build
run: npm install

- name: Run linter
run: node node_modules/eslint/bin/eslint .

- name: Run test suite
run: node node_modules/mocha/bin/mocha tests

0 comments on commit 5d4d553

Please sign in to comment.