Skip to content

Latest commit

 

History

History
51 lines (35 loc) · 1.29 KB

CONTRIBUTING.md

File metadata and controls

51 lines (35 loc) · 1.29 KB

Contribution user guide

You'll need to download the Go binary to build and test this application.

You may also need to follow the user guide in the README.md to obtain the Google service account to interact with the API with your locally built app.

Check out the repo

git clone mathisve/gdrive-upload-action

Run the tests

You may want to run the tests before you start development, and make sure all tests are passing.

go test -v

Build the app locally

You can build the app locally with either go run main.go or go build ..

Running the app locally

The go run method is very useful during development, as you can make sure new or altered functionality works end-to-end.

In order for the githubactions.GitInput functions to work, you'll need to export the needed env variables. E.g if using a direnv .envrc file:

export INPUT_FILENAME=README.md
export INPUT_ENCODED=true
export INPUT_CREDENTIALS=...some-base64-service-account-json...
export INPUT_FOLDERID=...some-gdrive-folder-id...

Then, run the app, and examine the output

go run main.go
::add-mask::...
::add-mask::...
::debug::Creating file README.md in folder 1cPZfHTv4Btz-wazqowfEPurP4Ede_zyv