-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #82 from heroku/kp/gh-actions
chore: add github actions
- Loading branch information
Showing
4 changed files
with
73 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,46 @@ | ||
--- | ||
version: 2 | ||
jobs: | ||
node-latest: &test | ||
docker: | ||
- image: node:14 | ||
working_directory: ~/cli | ||
steps: | ||
- checkout | ||
- restore_cache: &restore_cache | ||
keys: | ||
- v1-npm-{{checksum ".circleci/config.yml"}}-{{ checksum "yarn.lock"}} | ||
- v1-npm-{{checksum ".circleci/config.yml"}} | ||
- run: | ||
name: Install dependencies | ||
command: .circleci/greenkeeper | ||
- run: ./bin/run --help | ||
- run: | ||
name: Installing Heroku CLI | ||
command: curl https://cli-assets.heroku.com/install.sh | sh | ||
- run: | ||
name: Setting up plugin and manifet | ||
command: yarn global add oclif && heroku plugins:link | ||
- run: | ||
name: Testing | ||
command: yarn test | ||
- run: | ||
name: Running nyc code coverage | ||
command: ./node_modules/.bin/nyc report --reporter text-lcov > coverage.lcov | ||
- save_cache: | ||
key: v1-yarn-{{checksum ".circleci/config.yml"}}-{{checksum "yarn.lock"}} | ||
paths: | ||
- ~/cli/node_modules | ||
- /usr/local/share/.cache/yarn | ||
- /usr/local/share/.config/yarn | ||
node-12: | ||
<<: *test | ||
docker: | ||
- image: node:12 | ||
# --- | ||
# version: 2 | ||
# jobs: | ||
# node-latest: &test | ||
# docker: | ||
# - image: node:14 | ||
# working_directory: ~/cli | ||
# steps: | ||
# - checkout | ||
# - restore_cache: &restore_cache | ||
# keys: | ||
# - v1-npm-{{checksum ".circleci/config.yml"}}-{{ checksum "yarn.lock"}} | ||
# - v1-npm-{{checksum ".circleci/config.yml"}} | ||
# - run: | ||
# name: Install dependencies | ||
# command: .circleci/greenkeeper | ||
# - run: ./bin/run --help | ||
# - run: | ||
# name: Installing Heroku CLI | ||
# command: curl https://cli-assets.heroku.com/install.sh | sh | ||
# - run: | ||
# name: Setting up plugin and manifet | ||
# command: yarn global add oclif && heroku plugins:link | ||
# - run: | ||
# name: Testing | ||
# command: yarn test | ||
# - run: | ||
# name: Running nyc code coverage | ||
# command: ./node_modules/.bin/nyc report --reporter text-lcov > coverage.lcov | ||
# - save_cache: | ||
# key: v1-yarn-{{checksum ".circleci/config.yml"}}-{{checksum "yarn.lock"}} | ||
# paths: | ||
# - ~/cli/node_modules | ||
# - /usr/local/share/.cache/yarn | ||
# - /usr/local/share/.config/yarn | ||
# node-12: | ||
# <<: *test | ||
# docker: | ||
# - image: node:12 | ||
|
||
workflows: | ||
version: 2 | ||
"@heroku-cli/addons-admin": | ||
jobs: | ||
- node-latest | ||
- node-12 | ||
# workflows: | ||
# version: 2 | ||
# "@heroku-cli/addons-admin": | ||
# jobs: | ||
# - node-latest | ||
# - node-12 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Node CI Suite | ||
|
||
on: | ||
push | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Nodejs 14 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 14.x | ||
- name: Installing Heroku CLI | ||
run: curl https://cli-assets.heroku.com/install.sh | sh | ||
- name: Setting up plugin and manifest | ||
run: yarn global add oclif && heroku plugins:link | ||
- name: Install dependencies | ||
run: yarn --frozen-lockfile | ||
- name: Testing | ||
run: yarn test | ||
- name: Run nyc code coverage report | ||
run: ./node_modules/.bin/nyc report --reporter text-lcov > coverage.lcov |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
# Comment line immediately above ownership line is reserved for related gus information. Please be careful while editing. | ||
# Lines starting with '#' are comments. | ||
# Each line is a file pattern followed by one or more owners. | ||
# These owners will be the default owners for everything in the repo. | ||
* @heroku/front-end | ||
#ECCN:Open Source |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters