Skip to content

Commit

Permalink
Merge pull request #82 from heroku/kp/gh-actions
Browse files Browse the repository at this point in the history
chore: add github actions
  • Loading branch information
kenyaplenty authored Jan 6, 2023
2 parents 8decef0 + 8d07b3a commit 9111cf9
Show file tree
Hide file tree
Showing 4 changed files with 73 additions and 47 deletions.
90 changes: 45 additions & 45 deletions .circleci/config.yml
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
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
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
5 changes: 4 additions & 1 deletion CODEOWNERS
Validating CODEOWNERS rules …
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
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
Heroku CLI plugin to help Heroku add-on providers integrate their services with Heroku.

[![Version](https://img.shields.io/npm/v/@heroku-cli/plugin-addons-admin.svg)](https://www.npmjs.com/package/@heroku-cli/plugin-addons-admin)
[![CircleCI](https://circleci.com/gh/heroku/heroku-cli-addons-admin/tree/master.svg?style=svg&circle-token=db696925a68c516a4f432c64530c5df9ba305b16)](https://circleci.com/gh/heroku/heroku-cli-addons-admin/tree/master)
[![Downloads/week](https://img.shields.io/npm/dw/@heroku-cli/plugin-addons-admin.svg)](https://npmjs.org/package/@heroku-cli/plugin-addons-admin)
[![License](https://img.shields.io/npm/l/@heroku-cli/plugin-addons-admin.svg)](https://github.com/heroku/heroku-cli-addons-admin/blob/master/package.json)

Expand Down

0 comments on commit 9111cf9

Please sign in to comment.