Skip to content

Commit

Permalink
fix(CI/CD): change CI scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
KoLiBer committed Jul 17, 2022
1 parent 5df34a4 commit 495d0d2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
1 change: 0 additions & 1 deletion .github/.releaserc.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
tagFormat: "${version}"
branches:
- "+([0-9])?(.{+([0-9]),x}).x"
- "master"
- "main"
plugins:
- "@semantic-release/commit-analyzer"
Expand Down
20 changes: 8 additions & 12 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,12 @@ on:
branches:
- "+([0-9])?(.{+([0-9]),x}).x"
- main
- next

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v2
with:
node-version: "17"
- uses: hashicorp/setup-terraform@v1
with:
terraform_version: "1.1.4"
- uses: actions/cache@v2
with:
path: .terraform/
Expand All @@ -29,6 +20,9 @@ jobs:
with:
path: build/
key: ${{ github.sha }}
- uses: hashicorp/setup-terraform@v1
with:
terraform_version: "1.1.4"

- run: terraform init
- run: terraform fmt -check
Expand All @@ -42,7 +36,7 @@ jobs:
steps:
- uses: actions/checkout@v3

- run: echo CodeCoverage
- run: echo Test

release:
needs: test
Expand All @@ -54,10 +48,12 @@ jobs:
with:
path: build/
key: ${{ github.sha }}
- uses: actions/setup-node@v3
with:
node-version: 17

- run: cp .github/.releaserc.yml .

- run: npm i -g semantic-release @semantic-release/changelog @semantic-release/github @semantic-release/git
- run: npm i -g semantic-release @semantic-release/changelog @semantic-release/git
- run: semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 495d0d2

Please sign in to comment.