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. +