Skip to content

Commit

Permalink
ci: add open source tests for the action
Browse files Browse the repository at this point in the history
  • Loading branch information
shakefu committed Nov 6, 2023
1 parent e1d4020 commit ba471ef
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: open-turo/actions-gha/lint@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

# test action works running from the graph
test:
Expand Down Expand Up @@ -39,3 +41,31 @@ jobs:
pip install pre-commit
- name: Pre-commit
uses: ./

# test-oss tries to run pre-commit against open source repositories not in
# open-turo to make sure this is usuable outside the org
test-oss:
name: Test / Open source
runs-on: ubuntu-latest
strategy:
matrix:
repos:
- google/uv-metrics
- localstack/localstack
- toml-lang/toml
- pre-commit/pre-commit
- terraform-aws-modules/terraform-aws-eks
- actions/starter-workflows
- github/codeql
- google/pre-commit-tool-hooks
- microsoft/superbenchmark
- nodejs/node-addon-examples
- python/peps
- hashicorp/copywrite
steps:
- uses: actions/checkout@v4
with:
repository: ${{ matrix.repos }}
- name: Pre-commit
# TODO: use a released version of this action
uses: open-turo/action-pre-commit@conditionalize-config

0 comments on commit ba471ef

Please sign in to comment.