mirror of
https://github.com/actions/publish-action.git
synced 2025-02-25 00:53:02 +00:00
27 lines
422 B
YAML
27 lines
422 B
YAML
|
name: Tests
|
||
|
on:
|
||
|
push:
|
||
|
branches:
|
||
|
- main
|
||
|
pull_request:
|
||
|
|
||
|
jobs:
|
||
|
test:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- name: Checkout
|
||
|
uses: actions/checkout@v2
|
||
|
|
||
|
- name: Set Node.JS
|
||
|
uses: actions/setup-node@v2
|
||
|
with:
|
||
|
node-version: 12.x
|
||
|
|
||
|
- name: Install dependencies
|
||
|
run: npm install
|
||
|
|
||
|
- name: Build
|
||
|
run: npm run build
|
||
|
|
||
|
- name: Run tests
|
||
|
run: npm run test
|