-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: use renovate, update CI and precommit and automate docs
- Loading branch information
Showing
12 changed files
with
214 additions
and
111 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,14 +2,15 @@ name: CI | |
|
||
on: | ||
pull_request: | ||
push: | ||
branches: [main] | ||
|
||
jobs: | ||
lint: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: open-turo/actions-gha/lint@v1 | ||
- uses: open-turo/actions-gha/lint@v2 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
|
@@ -18,8 +19,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
needs: [test-upload, test-download] | ||
steps: | ||
# This test is for node-based actions, we want to test our actions | ||
- uses: open-turo/actions-gha/test@v1 | ||
- uses: open-turo/actions-gha/test@v2 | ||
with: | ||
checkout-repo: true | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
@@ -32,30 +32,16 @@ jobs: | |
S3_BUCKET: actions-s3-artifact-test | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Create python requirements, for caching | ||
run: | | ||
cat > requirements.txt <<-EOF | ||
awscli | ||
awscli-local[ver1] | ||
boto3>=1.20 | ||
botocore<1.28.0,>=1.27.80 | ||
localstack | ||
pyopenssl | ||
EOF | ||
uses: actions/checkout@v4 | ||
- name: Setup Python dependency cache | ||
uses: actions/setup-python@v4 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version-file: .python-version | ||
cache: "pip" | ||
- name: Install python dependencies | ||
run: pip install -r requirements.txt | ||
# TODO: Replace this for faster localstack startup, particularly docker | ||
# image caching or using a leaner image | ||
- name: Setup LocalStack | ||
uses: HarshCasper/[email protected] | ||
# env: | ||
# LOCALSTACK_API_KEY: ${{ secrets.LOCALSTACK_API_KEY }} | ||
- name: Create S3 bucket in localstack | ||
run: awslocal s3 mb "s3://${S3_BUCKET}" | ||
- name: Upload individual files | ||
|
@@ -113,26 +99,14 @@ jobs: | |
S3_BUCKET: actions-s3-artifact-test | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Create python requirements, for caching | ||
run: | | ||
cat > requirements.txt <<-EOF | ||
awscli | ||
awscli-local[ver1] | ||
boto3>=1.20 | ||
botocore<1.28.0,>=1.27.80 | ||
localstack | ||
pyopenssl | ||
EOF | ||
uses: actions/checkout@v4 | ||
- name: Setup Python dependency cache | ||
uses: actions/setup-python@v4 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version-file: .python-version | ||
cache: "pip" | ||
- name: Install python dependencies | ||
run: pip install -r requirements.txt | ||
# TODO: Replace this for faster localstack startup, particularly docker | ||
# image caching or using a leaner image | ||
- name: Setup LocalStack | ||
uses: HarshCasper/[email protected] | ||
- name: Create S3 bucket in localstack | ||
|
@@ -225,26 +199,14 @@ jobs: | |
S3_BUCKET: actions-s3-artifact-test | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Create python requirements, for caching | ||
run: | | ||
cat > requirements.txt <<-EOF | ||
awscli | ||
awscli-local[ver1] | ||
boto3>=1.20 | ||
botocore<1.28.0,>=1.27.80 | ||
localstack | ||
pyopenssl | ||
EOF | ||
uses: actions/checkout@v4 | ||
- name: Setup Python dependency cache | ||
uses: actions/setup-python@v4 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version-file: .python-version | ||
cache: "pip" | ||
- name: Install python dependencies | ||
run: pip install -r requirements.txt | ||
# TODO: Replace this for faster localstack startup, particularly docker | ||
# image caching or using a leaner image | ||
- name: Setup LocalStack | ||
uses: HarshCasper/[email protected] | ||
- name: Create S3 bucket in localstack | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Update dependencies | ||
concurrency: update-dependencies | ||
|
||
on: | ||
schedule: | ||
# Every day at midnight | ||
- cron: "0 0 * * *" | ||
workflow_dispatch: | ||
issue_comment: | ||
types: | ||
- edited | ||
pull_request: | ||
types: | ||
- edited | ||
|
||
jobs: | ||
update-dependencies: | ||
runs-on: ubuntu-latest | ||
name: Update dependencies | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- uses: open-turo/action-renovate@v1 | ||
with: | ||
github-token: ${{ secrets.OPEN_TURO_GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,34 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.1.0 # Use the ref you want to point at | ||
rev: v4.6.0 # Use the ref you want to point at | ||
hooks: | ||
- id: check-json | ||
- id: check-yaml | ||
- id: pretty-format-json | ||
args: | ||
- --autofix | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
- repo: https://github.com/pre-commit/mirrors-eslint | ||
rev: v9.6.0 | ||
hooks: | ||
- id: eslint | ||
- repo: https://github.com/pre-commit/mirrors-prettier | ||
rev: v2.5.1 | ||
rev: v3.1.0 | ||
hooks: | ||
- id: prettier | ||
stages: [commit] | ||
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook | ||
rev: v8.0.0 | ||
rev: v9.16.0 | ||
hooks: | ||
- id: commitlint | ||
stages: [commit-msg] | ||
additional_dependencies: ["@open-turo/commitlint-config-conventional"] | ||
- repo: https://github.com/rhysd/actionlint | ||
rev: v1.6.8 | ||
rev: v1.7.1 | ||
hooks: | ||
- id: actionlint | ||
- repo: local | ||
hooks: | ||
- id: update-action-readme | ||
name: update-action-readme | ||
entry: ./script/update-action-readme | ||
language: script | ||
files: '.*action\.yaml$' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.10.4 | ||
3.10.14 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,3 @@ | ||
{ | ||
"branches": [ | ||
"main", | ||
{ | ||
"channel": "next", | ||
"name": "(f|b|c)/*", | ||
"prerelease": "beta-<%= (/^\\w+-\\d+/.exec(name.substr(2)) || [])[0] %>" | ||
} | ||
], | ||
"plugins": [ | ||
"@semantic-release/commit-analyzer", | ||
"@semantic-release/release-notes-generator", | ||
"@semantic-release/github" | ||
] | ||
"extends": "@open-turo/semantic-release-config" | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
awscli==1.33.21 | ||
awscli-local==0.22.0 | ||
boto3==1.34.139 | ||
botocore==1.34.139 | ||
localstack==3.5.0 | ||
pyOpenSSL==24.1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
for i in $*; do | ||
# ignore if the file does not end with /action.yaml | ||
if [[ "$i" != *"/action.yaml" ]]; then | ||
echo "skipping: ${i}" | ||
continue | ||
fi | ||
|
||
echo "npx action-docs --no-banner -s "${i}"" | ||
cd $(dirname "$i") | ||
npx action-docs@2 --no-banner -s action.yaml -u README.md || echo "action-docs failed for $i" | ||
cd - | ||
done |
Oops, something went wrong.