Basic golang CI setup (#360)

* bskyweb: Makefile and dev env

This matches the setup for local dev testing in atproto and indigo
repos.

* gitignore: don't ignore self and .github/

* CI: golang build+test and lint actions

* bskyweb: better use of godotenv

A recent change from indigo.

* prettier: ignore top-level app.json

* CI: bump from golang 1.19 to 1.20

* bskyweb: update to golang 1.20
This commit is contained in:
bnewbold 2023-03-27 08:16:17 -07:00 committed by GitHub
parent 4fbe0e267c
commit 2789d5c056
9 changed files with 102 additions and 12 deletions

View file

@ -3,8 +3,9 @@ package main
import (
"os"
_ "github.com/joho/godotenv/autoload"
logging "github.com/ipfs/go-log"
"github.com/joho/godotenv"
"github.com/urfave/cli/v2"
)
@ -16,15 +17,6 @@ func init() {
}
func main() {
// only try dotenv if it exists
if _, err := os.Stat(".env"); err == nil {
err := godotenv.Load()
if err != nil {
log.Fatal("Error loading .env file")
}
}
run(os.Args)
}