Skip to content

Commit

Permalink
feat: add GitHub Actions workflow for CLI testing and update README b…
Browse files Browse the repository at this point in the history
…adge
  • Loading branch information
root4loot committed Oct 4, 2024
1 parent fb05774 commit d72ab44
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .github/workflows/test-cli.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Test CLI

on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: "0 8 * * *"

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

steps:
- name: Checkout code
uses: actions/checkout@v3

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

- name: Install Dependencies
run: go mod download

- name: Run CLI Tests
run: go test -v ./cmd
3 changes: 3 additions & 0 deletions .github/workflows/test-daily.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Test Daily

on:
push:
branches:
- main
schedule:
- cron: "0 8 * * *"

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[![Intigriti](https://github.com/root4loot/rescope/actions/workflows/test-intigriti.yml/badge.svg?branch=main)](https://github.com/root4loot/rescope/actions/workflows/test-intigriti.yml)
[![YesWeHack](https://github.com/root4loot/rescope/actions/workflows/test-yeswehack.yml/badge.svg?branch=main)](https://github.com/root4loot/rescope/actions/workflows/test-yeswehack.yml)
[![HackenProof](https://github.com/root4loot/rescope/actions/workflows/test-hackenproof.yml/badge.svg?branch=main)](https://github.com/root4loot/rescope/actions/workflows/test-hackenproof.yml)
![Test CLI](https://github.com/root4loot/rescope/actions/workflows/test.yml/badge.svg?branch=main)
[![Test CLI](https://github.com/root4loot/rescope/actions/workflows/test-cli.yml/badge.svg?branch=main)](https://github.com/root4loot/rescope/actions/workflows/test-cli.yml)
![Twitter Follow](https://img.shields.io/twitter/follow/danielantonsen.svg?style=dark)


Expand Down

0 comments on commit d72ab44

Please sign in to comment.