mirror of
https://github.com/paulirish/git-open.git
synced 2026-09-10 07:26:15 -04:00
move to github actions
This commit is contained in:
parent
1a93477f70
commit
68728f4440
28
.github/workflows/ci.yml
vendored
Normal file
28
.github/workflows/ci.yml
vendored
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
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 run lint:package
|
||||
- run: npm run lint:readme
|
||||
- run: npm run lint:editorconfig
|
||||
- run: npm run lint:man
|
||||
- run: shellcheck git-open
|
||||
- run: npm run man
|
||||
- run: ./bats/bin/bats test/*.bats
|
||||
17
.travis.yml
17
.travis.yml
|
|
@ -1,17 +0,0 @@
|
|||
language: node_js
|
||||
node_js: "node"
|
||||
cache:
|
||||
directories:
|
||||
- node_modules
|
||||
before_install:
|
||||
- git clone --depth 1 https://github.com/sstephenson/bats.git
|
||||
install:
|
||||
- npm install
|
||||
script:
|
||||
- npm run lint:package
|
||||
- npm run lint:readme
|
||||
- npm run lint:editorconfig
|
||||
- npm run lint:man
|
||||
- shellcheck git-open
|
||||
- npm run man
|
||||
- ./bats/bin/bats test/*.bats
|
||||
Loading…
Reference in a new issue