Skip to content

Commit

Permalink
fix: release please configs
Browse files Browse the repository at this point in the history
Signed-off-by: Corey Hemminger <[email protected]>
  • Loading branch information
Stromweld committed Jun 21, 2024
1 parent 057465d commit 87197f3
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 33 deletions.
32 changes: 15 additions & 17 deletions .github/workflows/ci.yml → .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,33 @@
---
name: Lint & Unit
name: 'Lint, Unit & Integration Tests'

"on":
pull_request:

jobs:
lint-unit:
uses: test-kitchen/.github/.github/workflows/lint-unit.yml@v0.1.2
uses: test-kitchen/.github/.github/workflows/lint-unit.yml@main

integration-windows:
name: Windows ${{matrix.suite}} ${{matrix.os}}
runs-on: windows-latest
needs: lint-unit
strategy:
fail-fast: false
matrix:
suite: [default]
os: [ubuntu-20.04]
os: [ubuntu-24.04]
ruby: ["3.3"]
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.1"
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- run: bundle exec kitchen test ${{ matrix.suite }}-${{ matrix.os }}

integration-linux:
name: Linux ${{matrix.suite}} ${{matrix.os}}
runs-on: ubuntu-latest
needs: lint-unit
strategy:
Expand All @@ -41,22 +40,21 @@ jobs:
- amd64
- inspec
os:
- amazonlinux-2
- ubuntu-1804
- ubuntu-2004
- amazonlinux-2023
- ubuntu-2204
- ubuntu-2404
- fedora-latest
- centos-7
- oraclelinux-7
- rockylinux-8
- debian-11
- almalinux-9
- rockylinux-9
- debian-12
- opensuse-15
- dockerfile
ruby: ["3.3"]
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.1"
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
Expand All @@ -65,20 +63,20 @@ jobs:
- run: bundle exec kitchen test ${{ matrix.suite }}-${{ matrix.os }}

integration-capabilities:
name: Linux ${{matrix.suite}} ${{matrix.os}}
runs-on: ubuntu-latest
needs: lint-unit
strategy:
fail-fast: false
matrix:
suite:
- capabilities
os: [debian-11, ubuntu-1804, ubuntu-2004]
os: [debian-12, ubuntu-2204, ubuntu-2404]
ruby: ["3.3"]
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.1"
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,9 @@ jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
- uses: googleapis/release-please-action@v4
id: release
with:
release-type: ruby
package-name: kitchen-docker
version-file: lib/kitchen/driver/docker_version.rb
token: ${{ secrets.PORTER_GITHUB_TOKEN }}

- name: Checkout
Expand Down
8 changes: 3 additions & 5 deletions .markdownlint.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
---
default: true
MD004: false
MD012: false
MD013: false
MD024: false
MD026: false
MD036: false
MD012: false
MD029: false
MD004: false
3 changes: 3 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "3.0.0"
}
12 changes: 5 additions & 7 deletions kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,16 @@ provisioner:
name: dummy

platforms:
- name: amazonlinux-2
- name: ubuntu-18.04
- name: ubuntu-20.04
- name: amazonlinux-2023
- name: ubuntu-22.04
- name: ubuntu-24.04
- name: fedora-latest
driver:
provision_command:
- yum install libxcrypt-compat -y
- curl -L https://www.chef.io/chef/install.sh | bash
- name: centos-7
- name: oraclelinux-7
- name: rockylinux-8
- name: debian-11
- name: almalinux-9
- name: rockylinux-9
- name: debian-12
- name: opensuse-15
driver:
Expand Down
12 changes: 12 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"packages": {
".": {
"package-name": "kitchen-docker",
"changelog-path": "CHANGELOG.md",
"release-type": "ruby",
"include-component-in-tag": false,
"version-file": "lib/kitchen/docker/docker_version.rb"
}
},
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"
}

0 comments on commit 87197f3

Please sign in to comment.