From 25327a213e0d8d9a5a32765c17974290f12addf6 Mon Sep 17 00:00:00 2001 From: Michal Dorner Date: Thu, 21 May 2020 14:53:14 +0200 Subject: [PATCH] Fix README & status badge (#5) --- .github/workflows/build.yml | 14 ++++++++++++++ .../{test.yml => pull-request-verification.yml} | 2 +- README.md | 3 +-- 3 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/build.yml rename .github/workflows/{test.yml => pull-request-verification.yml} (94%) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..e4f5597 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,14 @@ +name: "Build" +on: + push: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - run: | + npm install + npm run all diff --git a/.github/workflows/test.yml b/.github/workflows/pull-request-verification.yml similarity index 94% rename from .github/workflows/test.yml rename to .github/workflows/pull-request-verification.yml index 0467317..cc685d1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/pull-request-verification.yml @@ -1,4 +1,4 @@ -name: "build-test" +name: "Pull Request Verification" on: pull_request: types: diff --git a/README.md b/README.md index 0883c5b..e7629de 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@

- typescript-action status + typescript-action status

**CAUTION**: This action can be only used in a workflow triggered by `pull_request` event. @@ -36,7 +36,6 @@ Output variables can be later used in the `if` clause to conditionally run speci ### Sample workflow ```yaml -... name: Build verification on: