mirror of
https://github.com/paulirish/git-open.git
synced 2026-09-10 07:26:15 -04:00
37 lines
760 B
YAML
37 lines
760 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
# branches: [master]
|
|
pull_request: # run on all PRs, not just PRs to a particular branch
|
|
|
|
jobs:
|
|
basics:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: git clone
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 100
|
|
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: latest
|
|
|
|
- run: npm ci
|
|
|
|
- name: Setup BATS
|
|
uses: mig4/setup-bats@v1
|
|
with:
|
|
bats-version: 0.4.0
|
|
- run: git submodule update --init
|
|
name: pull in bats assertion libs
|
|
|
|
- run: npm run lint
|
|
- run: npm run shellcheck
|
|
- run: npm run unit
|
|
- name: check if manpage needs a regen
|
|
run: cp git-open.1 git-open.old && npm run man && git diff --no-index ./git-open.old ./git-open.1
|
|
|