Skip to content

Commit

Permalink
use common workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
carlduevel committed Jan 22, 2022
1 parent ab228cf commit ac2b087
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 52 deletions.
22 changes: 7 additions & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,14 @@
name: Build

name: Test
on:
push:
branches:
- main
pull_request:
schedule:
- cron: '11 1 * * 1'

jobs:
plugin_test:
name: asdf plugin test
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
runs-on: ${{ matrix.os }}
steps:
- name: asdf_plugin_test
uses: asdf-vm/actions/plugin-test@v1
with:
command: iam-policy-json-to-terraform --version
test:
uses: carlduevel/asdf-plugin-build-harness/.github/workflows/build.yml@master
with:
command: iam-policy-json-to-terraform --version
39 changes: 2 additions & 37 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,40 +6,5 @@ on:
pull_request:

jobs:
shellcheck:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Install asdf dependencies
uses: asdf-vm/actions/install@v1

- name: Run ShellCheck
run: scripts/shellcheck.bash

shellfmt:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install asdf
uses: asdf-vm/actions/setup@v1

- name: asdf cache
id: asdf-cache
uses: actions/cache@v2
with:
path: ~/.asdf/
key: ${{ runner.os }}-${{ hashFiles('**/.tool-versions') }}

- name: Install asdf dependencies
if: steps.asdf-cache.outputs.cache-hit != 'true'
uses: asdf-vm/actions/install@v1

- name: List file to shfmt
run: shfmt -f .

- name: Run shfmt
run: scripts/shfmt.bash
shell:
uses: carlduevel/asdf-plugin-build-harness/.github/workflows/lint.yml@master

0 comments on commit ac2b087

Please sign in to comment.