Skip to content

Commit

Permalink
move to github actions (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish committed Jul 18, 2022
1 parent 1a93477 commit 0b62651
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 23 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
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 # This is the version i have locally. looks like an upgrade is in order, though…
- run: git submodule update --init
name: pull in bats assertion libs

- run: npm run lint
- run: npm run shellcheck
- run: npm run unit
17 changes: 0 additions & 17 deletions .travis.yml

This file was deleted.

8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ git open [remote-name] [branch-name]

git open --commit
git open -c
# Open the current commit in the repo website
# Open the current commit in the repo website

git open --issue
git open -i
# If this branch is named like issue/#123, this will open the corresponding
# issue in the repo website
# If this branch is named like issue/#123, this will open the corresponding
# issue in the repo website

git open --print
git open -p
Expand Down Expand Up @@ -93,7 +93,7 @@ for testing before adding it to your `.zshrc`.
1. `git clone https://github.com/paulirish/git-open.git $ZSH_CUSTOM/plugins/git-open`
1. Add `git-open` to your plugin list - edit `~/.zshrc` and change
`plugins=(...)` to `plugins=(... git-open)`
`plugins=(...)` to `plugins=(... git-open)`
#### [Zgen](https://github.com/tarjoilija/zgen)
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
},
"man": "./git-open.1",
"scripts": {
"lint:editorconfig": "eclint check git-open* readme* .travis.yml",
"lint:editorconfig": "eclint check ./git-open *.md *.yml",
"lint:readme": "markdownlint --config markdownlint.json README.md",
"lint:man": "markdownlint --config markdownlint.json git-open.1.md",
"man": "marked-man --version \"git-open $npm_package_version\" --manual \"Git manual\" --section 1 git-open.1.md > git-open.1",
Expand All @@ -43,7 +43,9 @@
"lint": "npm run lint:readme && npm run lint:man && npm run lint:editorconfig",
"test": "npm run unit && npm run lint",

"watch": "find . -maxdepth 2 -iname '*bats' -o -iname 'git-open' | entr bats test/"
"watch": "find . -maxdepth 2 -iname '*bats' -o -iname 'git-open' | entr bats test/",

"prepublishOnly": "npm run man && npm run test"
},
"devDependencies": {
"eclint": "^2.1.0",
Expand Down

0 comments on commit 0b62651

Please sign in to comment.