chore(deps): update workflows #248
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
name: Semantic | |
on: | |
schedule: | |
- cron: '0 0 * * SUN' | |
workflow_dispatch: | |
inputs: | |
filterResults: | |
description: 'What comparator results the generators should print' | |
required: false | |
default: 'failures' | |
type: choice | |
options: | |
- all | |
- failures | |
- successes | |
pull_request: | |
paths: | |
- '.github/workflows/semantic.yml' | |
- 'generators/**' | |
# Restrict jobs in this workflow to have no permissions by default; permissions | |
# should be granted per job as needed using a dedicated `permissions` block | |
permissions: {} | |
env: | |
VERSION_GENERATOR_PRINT: ${{ inputs.filterResults }} | |
jobs: | |
generate-debian-versions: | |
permissions: | |
contents: read # to fetch code (actions/checkout) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | |
- uses: actions/cache/restore@3624ceb22c1c5a301c8db4169662070a689d9ea8 # v4.1.1 | |
with: | |
path: /tmp/debian-versions-generator-cache.csv | |
key: ${{ runner.os }}- | |
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | |
with: | |
persist-credentials: false | |
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0 | |
with: | |
python-version: '3.10' | |
- run: dpkg --version | |
- run: python3 generators/generate-debian-versions.py | |
- run: git status | |
- run: stat debian-db.zip | |
- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 | |
with: | |
name: generated-debian-versions | |
path: pkg/semantic/fixtures/debian-versions-generated.txt | |
- uses: actions/cache/save@3624ceb22c1c5a301c8db4169662070a689d9ea8 # v4.1.1 | |
with: | |
path: /tmp/debian-versions-generator-cache.csv | |
key: ${{ runner.os }}-${{ hashFiles('debian-db.zip') }} | |
generate-packagist-versions: | |
permissions: | |
contents: read # to fetch code (actions/checkout) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | |
with: | |
persist-credentials: false | |
- uses: shivammathur/setup-php@c541c155eee45413f5b09a52248675b1a2575231 # 2.31.1 | |
with: | |
php-version: '8.2' | |
extensions: zip | |
- run: php generators/generate-packagist-versions.php | |
- run: git status | |
- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 | |
with: | |
name: generated-packagist-versions | |
path: pkg/semantic/fixtures/packagist-versions-generated.txt | |
generate-pypi-versions: | |
permissions: | |
contents: read # to fetch code (actions/checkout) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | |
with: | |
persist-credentials: false | |
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0 | |
with: | |
python-version: '3.10' | |
- name: setup dependencies | |
run: pip install packaging==21.3 | |
- run: python3 generators/generate-pypi-versions.py | |
- run: git status | |
- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 | |
with: | |
name: generated-pypi-versions | |
path: pkg/semantic/fixtures/pypi-versions-generated.txt | |
generate-rubygems-versions: | |
permissions: | |
contents: read # to fetch code (actions/checkout) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | |
with: | |
persist-credentials: false | |
- uses: ruby/setup-ruby@f26937343756480a8cb3ae1f623b9c8d89ed6984 # v1.196.0 | |
with: | |
ruby-version: '3.1' | |
- name: setup dependencies | |
run: gem install rubyzip | |
- run: ruby generators/generate-rubygems-versions.rb | |
- run: git status | |
- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 | |
with: | |
name: generated-rubygems-versions | |
path: pkg/semantic/fixtures/rubygems-versions-generated.txt | |
generate-maven-versions: | |
permissions: | |
contents: read # to fetch code (actions/checkout) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | |
with: | |
persist-credentials: false | |
- uses: actions/setup-java@b36c23c0d998641eff861008f374ee103c25ac73 # v4.4.0 | |
with: | |
java-version: 17 | |
distribution: oracle | |
- name: setup dependencies | |
run: | | |
mkdir -p generators/lib | |
curl https://repo1.maven.org/maven2/org/json/json/20220924/json-20220924.jar \ | |
-o generators/lib/json-20220924.jar | |
curl https://repo1.maven.org/maven2/org/apache/maven/maven-artifact/3.8.5/maven-artifact-3.8.5.jar \ | |
-o generators/lib/maven-artifact-3.8.5.jar | |
- run: java -cp 'generators/lib/*' generators/GenerateMavenVersions.java | |
- run: git status | |
- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 | |
with: | |
name: generated-maven-versions | |
path: pkg/semantic/fixtures/maven-versions-generated.txt | |
generate-cran-versions: | |
permissions: | |
contents: read # to fetch code (actions/checkout) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | |
with: | |
persist-credentials: false | |
- uses: r-lib/actions/setup-r@e6be4b3706e0f39bc7a4cf4496a5f2c4cb840040 # v2.10.1 | |
with: | |
r-version: '3.5.3' | |
- run: Rscript generators/generate-cran-versions.R | |
- run: git status | |
- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 | |
with: | |
name: generated-cran-versions | |
path: pkg/semantic/fixtures/cran-versions-generated.txt | |
test-semantic: | |
permissions: | |
contents: read # to fetch code (actions/checkout) | |
runs-on: ubuntu-latest | |
needs: | |
- generate-debian-versions | |
- generate-packagist-versions | |
- generate-pypi-versions | |
- generate-rubygems-versions | |
- generate-maven-versions | |
- generate-cran-versions | |
if: always() | |
steps: | |
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | |
with: | |
persist-credentials: false | |
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 | |
with: | |
go-version-file: .go-version | |
cache: true | |
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8 | |
with: | |
pattern: generated-*-versions | |
path: pkg/semantic/fixtures/ | |
merge-multiple: true | |
- run: git status | |
- run: make test |