Skip to content

Commit

Permalink
add readme files
Browse files Browse the repository at this point in the history
  • Loading branch information
nabim777 committed Aug 23, 2023
1 parent 68d80d3 commit 9fdf29d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
#basically command in linux which basically checkout the code
uses: actions/checkout@v2

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

- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.54
run: golangci-lint

- name: Display Go version
run: go version

Expand All @@ -29,4 +34,5 @@ jobs:
- name: bats run
working-directory: ./
run: |
bats tests/test_scan_command.bats
bats tests/test_scan_command.bats
9 changes: 9 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,12 @@ go run main.go <command>
FEATURES_PATH=<path_to_feature_files> EXPECTED_FAILURES_DIR=<path_to_expected_failures> go run main.go shift
```

### Run test
- Install Bats (Bash Automated Testing System) on your system using the following command:
```bash
sudo apt install bats
```
- After installing Bats, you can run your tests locally using the following command:
```bash
bats tests/test_scan_command.bats
```

0 comments on commit 9fdf29d

Please sign in to comment.