Skip to content

chore: improved readme #9

chore: improved readme

chore: improved readme #9

Workflow file for this run

---
name: CI
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: ['1.23']
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- name: Install Dependencies
run: go mod tidy
- name: Run Unit Tests
run: go test ./... -v
- name: Check Formatting
run: gofmt -l .
environment-test:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '1.23'
- name: Install Dependencies
run: go mod tidy
- name: Set Environment Variables
run: |
echo "NOTES_PATH=$HOME/test_notes" >> $GITHUB_ENV
echo "EDITOR=echo" >> $GITHUB_ENV
echo "NOTES_FILETYPE=md" >> $GITHUB_ENV
echo "NOTES_SCRATCHFILE=scratch" >> $GITHUB_ENV
echo "NOTES_VIEWER=cat" >> $GITHUB_ENV
- name: Run Core Functional Tests
run: |
mkdir -p $NOTES_PATH
go run main.go edit test_note
go run main.go list
echo "Test Content" | go run main.go
go run main.go show scratch
- name: Validate Command Outputs
run: |
go run main.go list | grep "scratch"
go run main.go find "Test Content" | grep "Found in"