Skip to content

Commit

Permalink
Added CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
xBlaz3kx committed Apr 10, 2024
1 parent bbdb81d commit b62be9e
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @xBlaz3kx
50 changes: 50 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: "Lint and test"
on:
push:
branches:
- master
paths-ignore:
- 'docs/**'
- '.run/**'
- 'api/**'
- 'features/**'
- 'config/**'
- 'deployments/**'
- '*.md'
tags:
- v*

pull_request:
types: [ opened, synchronize ]
branches:
- master
paths-ignore:
- 'docs/**'
- '.run/**'
- 'api/**'
- 'features/**'
- 'config/**'
- 'deployments/**'
- '*.md'

workflow_dispatch:

jobs:

# Run unit tests
tests:
name: "Run unit tests"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: 1.21.1

- name: Install dependencies and run tests
run: |
go mod download
go test -v ./...

0 comments on commit b62be9e

Please sign in to comment.