Skip to content

test: change travis to github action #3

test: change travis to github action

test: change travis to github action #3

Workflow file for this run

name: build
on: [push, pull_request]
concurrency:
group: ${{github.workflow}}-${{github.event_name}}-${{github.ref}}
cancel-in-progress: true
jobs:
test-and-build:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 8
node-version: 9

Check failure on line 20 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / build

Invalid workflow file

The workflow is not valid. .github/workflows/build.yml (Line: 20, Col: 11): 'node-version' is already defined .github/workflows/build.yml (Line: 21, Col: 11): 'node-version' is already defined
node-version: 10
node-version: 11
node-version: 12
node-version: 13
- name: Install Dependencies
run: npm install
- name: Run build & test
run: |
npm run build
- name: Coveralls GitHub Action
uses: coverallsapp/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}