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 ca1d099 commit 01c9fa5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 44 deletions.
23 changes: 7 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,13 @@
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: zprint -v
test:
uses: carlduevel/asdf-plugin-build-harness/.github/workflows/build.yml@master
with:
command: zprint -v
30 changes: 2 additions & 28 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,34 +3,8 @@ name: Lint
on:
push:
branches:
- main
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 code
uses: actions/checkout@v2

- name: Install asdf dependencies
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 01c9fa5

Please sign in to comment.