Skip to content

Commit

Permalink
fix: cicd, remove scheduled cicd runs (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
jthegedus authored Feb 25, 2021
1 parent 7cfb499 commit f6c0524
Show file tree
Hide file tree
Showing 6 changed files with 133 additions and 41 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
name: Build
on:
pull_request:
paths-ignore:
- "**.md"
push:
paths-ignore:
- "**.md"
schedule:
- cron: "0 0 * * *" # daily at midnight
on: [push, pull_request]

jobs:
plugin_test:
Expand All @@ -18,6 +10,6 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: asdf_plugin_test
uses: asdf-vm/actions/plugin-test@v1.0.0
uses: asdf-vm/actions/plugin-test@v1
with:
command: gcloud --version
37 changes: 9 additions & 28 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -1,39 +1,20 @@
name: Lint
on:
pull_request:
paths-ignore:
- "**.md"
push:
paths-ignore:
- "**.md"
schedule:
- cron: "0 0 * * *" # daily at midnight
on: [push, pull_request]

jobs:
shellcheck:
name: shellcheck
code_lint:
name: Shellcheck and Shell Format
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Update Shellcheck
run: |
sudo apt install xz-utils
scversion="stable"
wget -qO- "https://github.com/koalaman/shellcheck/releases/download/${scversion?}/shellcheck-${scversion?}.linux.x86_64.tar.xz" | tar -xJv
sudo cp "shellcheck-${scversion}/shellcheck" /usr/bin/
shellcheck --version
- name: asdf_install
uses: asdf-vm/actions/install@v1
with:
before_install: bash -c '${ASDF_DATA_DIR:=$HOME/.asdf}/plugins/nodejs/bin/import-release-team-keyring'
- name: Shellcheck
run: shellcheck -x bin/* -P lib/
shfmt:
name: shfmt
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Shell Format
run: brew install shfmt
- name: List files to check
- name: Shell Format - List files to check
run: shfmt -f .
- name: Check Format
- name: Shell Format - Validate
run: shfmt -d .
120 changes: 118 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Created by https://www.gitignore.io/api/linux,macos,windows
# Created by https://www.toptal.com/developers/gitignore/api/linux,macos,windows,node
# Edit at https://www.toptal.com/developers/gitignore?templates=linux,macos,windows,node

### Linux ###
*~
Expand All @@ -24,6 +25,7 @@
# Icon must end with two \r
Icon


# Thumbnails
._*

Expand All @@ -43,6 +45,120 @@ Network Trash Folder
Temporary Items
.apdisk

### Node ###
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional stylelint cache
.stylelintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
.env.test
.env*.local

# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# Next.js build output
.next

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

### Windows ###
# Windows thumbnail cache files
Thumbs.db
Expand All @@ -69,4 +185,4 @@ $RECYCLE.BIN/
# Windows shortcuts
*.lnk

# End of https://www.gitignore.io/api/linux,macos,windows
# End of https://www.toptal.com/developers/gitignore/api/linux,macos,windows,node
3 changes: 3 additions & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
nodejs 14.15.5
shellcheck 0.7.1
shfmt 3.2.2
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# asdf-gcloud ![Build](https://github.com/jthegedus/asdf-gcloud/workflows/Build/badge.svg) ![Lint](https://github.com/jthegedus/asdf-gcloud/workflows/Lint/badge.svg)

<a href="https://cloud.google.com/sdk/gcloud/reference" target="_blank" rel="noopener noreferrer">
<img src="images/logo_lockup_cloud_rgb.png" height="42" align="middle" />
<img src="assets/logo_lockup_cloud_rgb.png" height="42" align="middle" />
</a>

[GCloud CLI](https://cloud.google.com/sdk/gcloud/reference) plugin for [asdf version manager](https://asdf-vm.com) allowing you to pin `gcloud` versions for each GCP project.
Expand Down
File renamed without changes

0 comments on commit f6c0524

Please sign in to comment.