Skip to content

Commit

Permalink
test: Added tests workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
generalvamp committed Jul 27, 2024
1 parent 7115d83 commit 37dc26b
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# This workflow runs tests for go-nekos-api
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go

name: tests

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

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

- name: Run tests
run: go test github.com/generalvamp/go-nekos-api/... -v
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# go-nekos-api

[![tests](https://github.com/generalvamp/go-nekos-api/actions/workflows/tests.yml/badge.svg)](https://github.com/generalvamp/go-nekos-api/actions/workflows/tests.yml)


Unofficial go wrapper of [Nekos API](https://github.com/Nekos-API/Nekos-API)

0 comments on commit 37dc26b

Please sign in to comment.