diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index 49fe458..3b07263 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -3,7 +3,8 @@ on: pull_request: push: branches: - + - master + - main env: CI: true @@ -11,10 +12,7 @@ jobs: prettier: name: Format code runs-on: ubuntu-latest - if: | - github.event_name == 'push' && - github.ref == 'refs/heads/master' && - github.repository_owner == 'gulpjs' + if: ${{ github.event_name == 'push' }} steps: - name: Checkout @@ -23,21 +21,25 @@ jobs: - name: Prettier uses: gulpjs/prettier_action@v3.0 with: - commit_message: 'Build: Run prettier' + commit_message: 'chore: Run prettier' prettier_options: '--write .' - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} test: name: Tests for Node ${{ matrix.node }} on ${{ matrix.os }} runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + node: [10, 12, 14, 16] + os: [ubuntu-latest, windows-latest, macos-latest] + steps: - name: Clone repository uses: actions/checkout@v2 - name: Set Node.js version - uses: actions/setup-node@v1 + uses: actions/setup-node@v2 with: node-version: ${{ matrix.node }} @@ -47,32 +49,27 @@ jobs: - name: Install npm dependencies run: npm install - - name: Run lint and test + - name: Run lint + run: npm run lint + + - name: Run tests run: npm test - - name: Coveralls Parallel - uses: coverallsapp/github-action@v1.1.0 + - name: Coveralls + uses: coverallsapp/github-action@v1.1.2 with: github-token: ${{ secrets.GITHUB_TOKEN }} + flag-name: ${{matrix.os}}-node-${{ matrix.node }} parallel: true - env: - COVERALLS_FLAG_NAME: ${{matrix.os}}-node-${{ matrix.node }} - - strategy: - fail-fast: false - matrix: - node: [10, 12, 14] - os: [ubuntu-latest, windows-latest, macos-latest] coveralls: - name: Finish up - runs-on: ubuntu-latest needs: test + name: Finish up + runs-on: ubuntu-latest steps: - name: Coveralls Finished - uses: coverallsapp/github-action@v1.1.0 + uses: coverallsapp/github-action@v1.1.2 with: github-token: ${{ secrets.GITHUB_TOKEN }} parallel-finished: true - diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..87cd13c --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,16 @@ +name: release +on: + push: + branches: + - master + - main + +jobs: + release-please: + runs-on: ubuntu-latest + steps: + - uses: GoogleCloudPlatform/release-please-action@v2 + with: + token: ${{ secrets.GITHUB_TOKEN }} + release-type: node + package-name: release-please-action diff --git a/.prettierignore b/.prettierignore index ed88d37..c96ebe0 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,2 +1,3 @@ coverage/ .nyc_output/ +CHANGELOG.md diff --git a/LICENSE b/LICENSE index 41ed300..4f92523 100644 --- a/LICENSE +++ b/LICENSE @@ -1,24 +1,21 @@ The MIT License (MIT) -Copyright (c) 2014-2019 Tyler Kellen , Blaine Bublitz , and Eric Schoffstall +Copyright (c) 2014-2019, 2021 Tyler Kellen , Blaine Bublitz , and Eric Schoffstall -Permission is hereby granted, free of charge, to any person -obtaining a copy of this software and associated documentation -files (the "Software"), to deal in the Software without -restriction, including without limitation the rights to use, -copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the -Software is furnished to do so, subject to the following -conditions: +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/package.json b/package.json index 65ecff2..84249e8 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "devDependencies": { "eslint": "^7.21.0", "eslint-config-gulp": "^5.0.1", - "expect": "^26.6.2", + "expect": "^27.0.0", "mocha": "^8.3.0", "nyc": "^15.1.0" },