Skip to content

Commit

Permalink
feat(ci): use semantic-release, bump pre-commit v2
Browse files Browse the repository at this point in the history
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
ShahradR committed Jul 12, 2020
1 parent a200e84 commit 4d2cce3
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 21 deletions.
28 changes: 26 additions & 2 deletions .github/workflows/main.yaml
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
Expand All @@ -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
18 changes: 0 additions & 18 deletions .github/workflows/pre-commit.yaml

This file was deleted.

11 changes: 11 additions & 0 deletions .releaserc.yaml
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"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# action-taskcat

[![Tests](https://img.shields.io/github/workflow/status/ShahradR/action-taskcat/Tests?logo=github)](https://github.com/ShahradR/action-taskcat/actions?query=workflow%3ATests) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) [![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit)
[![Tests](https://img.shields.io/github/workflow/status/ShahradR/action-taskcat/CI%20workflow?logo=github)](https://github.com/ShahradR/action-taskcat/actions?query=workflow%3ATests) [![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)

The unofficial GitHub Action to run [taskcat] tests and validate your AWS CloudFormation templates by deploying them in different AWS regions and availability zones!

Expand Down

0 comments on commit 4d2cce3

Please sign in to comment.