Skip to content

Commit

Permalink
setting up reusable lint workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
traceypooh committed Feb 17, 2024
1 parent eb2e42a commit 69d353e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
on:
workflow_call:

jobs:
lint:
runs-on: ubuntu-latest
container:
image: ghcr.io/internetarchive/dyno:main
steps:
- uses: actions/checkout@v4
- run: /app/lint
18 changes: 5 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,20 +35,12 @@ you can use this for a GitHub Actions CI/CD pipeline:
```yml
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
# https://github.com/internetarchive/build/blob/main/action.yml
- uses: internetarchive/build@v1

lint:
runs-on: ubuntu-latest
container:
# https://github.com/internetarchive/dyno
image: ghcr.io/internetarchive/dyno:main
steps:
- uses: actions/checkout@v4
- run: /app/lint
uses: internetarchive/dyno/.github/workflows/lint.yml@main

# optional -- but standard archive.org CI/CD build/test/deploy pipeline setup:
cicd:
uses: internetarchive/cicd/.github/workflows/cicd.yml@main
```
You can copy that into your github repo into (likely new) subdir: `.github/workflows/cicd.yml`
Expand Down

0 comments on commit 69d353e

Please sign in to comment.