From 77c6f9c9e115193a0e71e77ccd53520f983722c7 Mon Sep 17 00:00:00 2001 From: haya14busa Date: Sun, 19 Jan 2020 04:25:18 +0000 Subject: [PATCH] Add test workflow --- .github/workflows/dockerimage.yml | 6 +++++- .github/workflows/test.yml | 20 ++++++++++++++++++++ testdata/testfile | 6 ++++++ 3 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/test.yml create mode 100644 testdata/testfile diff --git a/.github/workflows/dockerimage.yml b/.github/workflows/dockerimage.yml index a601c83..a9822c5 100644 --- a/.github/workflows/dockerimage.yml +++ b/.github/workflows/dockerimage.yml @@ -1,5 +1,9 @@ name: Docker Image CI -on: [push] +on: + push: + branches: + - master + pull_request: jobs: build: runs-on: ubuntu-latest diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..9f69c41 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,20 @@ +name: Test +on: + push: + branches: + - master + pull_request: +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: ./ + id: autobump + with: + file: testdata/testfile + version_name: REVIEWDOG_VERSION + repo: reviewdog/reviewdog + + - name: Check diff + run: git diff diff --git a/testdata/testfile b/testdata/testfile new file mode 100644 index 0000000..501c049 --- /dev/null +++ b/testdata/testfile @@ -0,0 +1,6 @@ +This is test file. + +REVIEWDOG_VERSION=0.1.0 + +The above version should be updated to the latest version with this action. +