mirror of
https://github.com/erlef/setup-beam.git
synced 2026-07-23 15:16:08 +00:00
2e0500f2a5
* Handle strings as such * Let automation do its thing
54 lines
1.2 KiB
YAML
54 lines
1.2 KiB
YAML
---
|
|
name: action
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
check_integrity:
|
|
name: Expected local npm actions
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-node@v1
|
|
with:
|
|
node-version: '14'
|
|
- run: npm install -g npm
|
|
- run: npm install
|
|
- run: npm run build
|
|
- run: npm run format
|
|
- run: npm install -g markdownlint-cli
|
|
- run: npm run markdownlint
|
|
- run: npm run shellcheck
|
|
- run: npm run yamllint
|
|
- run: npm run jslint
|
|
- name: Check if build left artifacts
|
|
run: git diff --exit-code
|
|
|
|
unit_tests_ubuntu:
|
|
name: Unit tests (Ubuntu)
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-node@v1
|
|
with:
|
|
node-version: '14'
|
|
- run: npm ci
|
|
- run: npm test
|
|
|
|
unit_tests_windows:
|
|
name: Unit tests (Windows)
|
|
runs-on: windows-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-node@v1
|
|
with:
|
|
node-version: '14'
|
|
- run: npm install --production
|
|
- run: npm test
|