mirror of
https://github.com/reecetech/version-increment.git
synced 2025-12-21 14:35:44 +00:00
Compare commits
5 Commits
2023.9.2
...
test_use_a
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3d5d532814 | ||
|
|
b78a17540f | ||
|
|
de5ab041fb | ||
|
|
3ac8392aa4 | ||
|
|
72c1fa6077 |
51
.github/workflows/test-and-release.yml
vendored
51
.github/workflows/test-and-release.yml
vendored
@@ -9,55 +9,12 @@ on:
|
|||||||
- '**'
|
- '**'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Run ShellCheck
|
|
||||||
uses: ludeeus/action-shellcheck@94e0aab03ca135d11a35e5bfc14e6746dc56e7e9 # v1.1.0
|
|
||||||
with:
|
|
||||||
check_together: 'yes'
|
|
||||||
|
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Get next version
|
||||||
uses: actions/checkout@v3
|
uses: reecetech/version-increment@use_api
|
||||||
|
id: version
|
||||||
- name: Setup bats
|
|
||||||
uses: mig4/setup-bats@af9a00deb21b5d795cabfeaa8d9060410377686d # v1.2.0
|
|
||||||
with:
|
with:
|
||||||
bats-version: 1.8.0
|
|
||||||
|
|
||||||
- name: Test
|
|
||||||
run: bats tests/*.bats
|
|
||||||
|
|
||||||
release:
|
|
||||||
needs:
|
|
||||||
- lint
|
|
||||||
- test
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Lookup version
|
|
||||||
id: version-lookup
|
|
||||||
run: ./version-lookup.sh
|
|
||||||
|
|
||||||
- name: Increment version
|
|
||||||
id: version-increment
|
|
||||||
run: ./version-increment.sh
|
|
||||||
env:
|
|
||||||
current_version: ${{ steps.version-lookup.outputs.CURRENT_VERSION }}
|
|
||||||
scheme: calver
|
scheme: calver
|
||||||
|
use_api: true
|
||||||
- name: Release version
|
|
||||||
uses: softprops/action-gh-release@v1
|
|
||||||
if: ${{ github.ref_name == github.event.repository.default_branch }}
|
|
||||||
with:
|
|
||||||
draft: false
|
|
||||||
prerelease: false
|
|
||||||
tag_name: "${{ steps.version-increment.outputs.VERSION }}"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user