generated from ShahradR/git-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ci): use semantic-release, bump pre-commit v2
This is a squashed commit from the ShahradR/git-template repository. It introduces the changes made in the following commits: f11ede1 Merge pull request #12 from ShahradR/develop adff551 Merge pull request #11 from ShahradR/feature/pre-commit-v2 bfa0b5b fix(action): bump pre-commit GitHub Action version ec11c9b Merge pull request #10 from ShahradR/feature/semantic-release 2c0f7dc feat(action): add support for semantic-release 1c02cc0 Merge pull request #7 from ShahradR/develop f16263a fix(pre-commit): set up Python and Node.js See pull requests ShahradR/git-template#7, ShahradR/git-template#10, ShahradR/git-template#11, and ShahradR/git-template#12 for more details.
- Loading branch information
Showing
4 changed files
with
38 additions
and
21 deletions.
There are no files selected for viewing
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,9 +1,18 @@ | ||
name: Tests | ||
name: CI workflow | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
Tests: | ||
pre-commit: | ||
name: Run pre-commit checks | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
- uses: pre-commit/[email protected] | ||
|
||
tests: | ||
name: Maven verify | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
@@ -14,3 +23,18 @@ jobs: | |
java-version: 1.8 | ||
- name: Run the Maven verify phase | ||
run: mvn -B verify --file pom.xml | ||
|
||
release: | ||
name: Create release | ||
runs-on: ubuntu-latest | ||
needs: [pre-commit, tests] | ||
if: ${{ needs.pre-commit.result == 'success' && needs.tests.result == 'success' }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/[email protected] | ||
with: | ||
node-version: 12 | ||
- name: Release | ||
run: npx semantic-release |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
branches: | ||
- main | ||
- name: develop | ||
prerelease: true | ||
|
||
plugins: | ||
- "@semantic-release/github" | ||
- "@semantic-release/commit-analyzer": | ||
preset: conventionalcommits | ||
- "@semantic-release/release-notes-generator" |
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