Skip to content

Commit

Permalink
chore: setup github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
NonsoAmadi10 committed Aug 2, 2024
1 parent 52fcd39 commit 3ebe5d9
Showing 1 changed file with 20 additions and 16 deletions.
36 changes: 20 additions & 16 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -1,24 +1,28 @@
name: zwis library workflow

on:
push:
push:
branches:
- main
- main
pull_request:
branches:
- main

jobs:
build:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Setup Go
uses: actions/checkout@v2
with:
go-version: '1.21'
- name: Install dependencies
run: |
go version
go install -v ./...
- name: Run Tests
run: |
go test -v ./tests/...
- name: Check out code
uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.20

- name: Install dependencies
run: go mod tidy

- name: Run tests
run: go test -v ./tests/...

0 comments on commit 3ebe5d9

Please sign in to comment.