Skip to content

Commit 9292223

Browse files
Merge pull request #45 from mineiros-io/add-github-actions
Switch CI from SemaphoreCI to GitHub actions
2 parents 9e4b10d + c2e37d0 commit 9292223

File tree

3 files changed

+27
-26
lines changed

3 files changed

+27
-26
lines changed

.github/workflows/main.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: CI/CD Pipeline
2+
3+
on: push
4+
5+
jobs:
6+
pre-commit:
7+
runs-on: ubuntu-latest
8+
name: Static Analysis
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v2
12+
- name: Run pre-commit
13+
run: make test/pre-commit
14+
15+
unit-tests:
16+
runs-on: ubuntu-latest
17+
name: Unit Tests
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v2
21+
- name: Run Unit Tests
22+
run: make test/unit-tests
23+
env:
24+
GITHUB_ORGANIZATION: ${{ secrets.TEST_GITHUB_ORGANIZATION }}
25+
GITHUB_TOKEN: ${{ secrets.TEST_GITHUB_TOKEN }}

.semaphore/semaphore.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -716,13 +716,13 @@ Copyright © 2020 [Mineiros GmbH][homepage]
716716
[homepage]: https://mineiros.io/?ref=terraform-github-repository
717717
718718

719-
[badge-build]: https://mineiros.semaphoreci.com/badges/terraform-github-repository/branches/master.svg?style=shields&key=df11a416-f581-4d35-917a-fa3c2de2048e
719+
[badge-build]: https://github.com/mineiros-io/terraform-github-repository/workflows/CI/CD%20Pipeline/badge.svg
720720
[badge-semver]: https://img.shields.io/github/v/tag/mineiros-io/terraform-github-repository.svg?label=latest&sort=semver
721721
[badge-license]: https://img.shields.io/badge/license-Apache%202.0-brightgreen.svg
722722
[badge-terraform]: https://img.shields.io/badge/terraform-0.13%20and%200.12.20+-623CE4.svg?logo=terraform
723723
[badge-slack]: https://img.shields.io/badge/[email protected]?logo=slack
724724

725-
[build-status]: https://mineiros.semaphoreci.com/projects/terraform-github-repository
725+
[build-status]: https://github.com/mineiros-io/terraform-github-repository/actions
726726
[releases-github]: https://github.com/mineiros-io/terraform-github-repository/releases
727727
[releases-terraform]: https://github.com/hashicorp/terraform/releases
728728
[apache20]: https://opensource.org/licenses/Apache-2.0

0 commit comments

Comments
 (0)