Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add github actions #82

Merged
merged 7 commits into from
Jan 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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