From f342bca31fc1634d90b6b6fa4b4aedcf83bcba6e Mon Sep 17 00:00:00 2001 From: Daniel LaCosse Date: Thu, 30 Sep 2021 13:07:56 -0400 Subject: [PATCH] add yarn actions, fix ShadowsocksConfig macro, webpack bin (#993) * add yarn actions, fix ShadowsocksConfig macro, webpack bin reverting unnecessary specificity * tweak action trigger --- .github/workflows/test.yml | 9 ++++++++- README.md | 2 ++ package.json | 1 + 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 411e75e3..eb082df4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,6 +1,13 @@ name: Build and Test -on: push +on: + pull_request: + branches: + - master + types: + - opened + - synchronize + jobs: manager: diff --git a/README.md b/README.md index 41831cbf..cd35c21d 100644 --- a/README.md +++ b/README.md @@ -65,6 +65,8 @@ It also defines two environmental variables: - ROOT_DIR: the root directory of the project, as an absolute path. - BUILD_DIR: where the build output should go, as an absolute path. +> ⚠️ To find all the actions in this project, run `yarn actions` + ### Build output Building creates the following directories under `build/`: diff --git a/package.json b/package.json index 0e5f19d0..7bc091b3 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,7 @@ "scripts": { "clean": "rm -rf src/*/node_modules/ build/ node_modules/ src/server_manager/install_scripts/do_install_script.ts src/server_manager/install_scripts/gcp_install_script.ts third_party/shellcheck/download/", "do": "bash ./scripts/do_action.sh", + "actions": "find . -name '*_action.sh' | sed -E 's:./src/(.*)_action.sh:\\1:' | grep -v 'scripts/do_action'", "lint": "yarn shellcheck && yarn tslint", "shellcheck": "bash ./scripts/shellcheck.sh", "tslint": "tslint 'src/**/*.ts' -e '**/node_modules/**'"