Skip to content

Commit

Permalink
init: open source
Browse files Browse the repository at this point in the history
  • Loading branch information
cancue committed Apr 24, 2024
0 parents commit b2b0433
Show file tree
Hide file tree
Showing 105 changed files with 9,716 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/release-please.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
on:
push:
branches:
- main

permissions:
contents: write
pull-requests: write

name: release-please

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
with:
release-type: go
38 changes: 38 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: test

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

jobs:

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

- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: 1.22.0

- name: Install
run: go mod tidy

- name: Test
run: go test -race -coverprofile=cover.prof -covermode=atomic ./pkg/...

- name: Copy coverage profile to text
run: cp cover.prof cover.txt

- name: Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: notebox/nbfm
file: ./cover.txt
45 changes: 45 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
build/bin
node_modules
frontend/dist
demo.note
nbfm.log

# dependencies
/node_modules

# testing
/coverage

# production
/dist

# editor
.idea
.vscode
*.code-workspace
*.suo
*.ntvs*
*.njsproj
*.sln
*.svd
*.userprefs
*.csproj
*.pidb
*.user
*.unityproj
*.booproj
ExportedObj/
*.xcuserstate

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local
.eslintcache

# log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
Loading

0 comments on commit b2b0433

Please sign in to comment.