diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 4066d1c..c49311c 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -1,21 +1,27 @@ -name: Run coveralls +name: coverage on: - - push - - pull_request + push: + branches: + - main + - dev + pull_request: + branches: + - main + - dev jobs: - build: + coverage: runs-on: ubuntu-latest steps: - name: Checkout sources - uses: actions/checkout@v2 + uses: actions/checkout@v3 - - name: Use Node.js 16.x - uses: actions/setup-node@v1 + - name: Use Node.js 18.x + uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: 18.x - name: Install dependencies run: npm ci diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 841662f..9311afa 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -1,19 +1,18 @@ -name: Deploy +name: deploy on: push: branches: - main jobs: - release: - name: Deploy + deploy: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v1 + uses: actions/checkout@v3 - name: Setup Node.js - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 18 - name: Dependencies run: npm ci - name: Build @@ -26,9 +25,9 @@ jobs: cp -r dist/* pages/lib/jsdoc-type-pratt-parser/ cp -r docs pages/ - name: Deploy - uses: JamesIves/github-pages-deploy-action@4.1.5 + uses: JamesIves/github-pages-deploy-action@4.4.1 with: branch: gh-pages folder: pages clean-exclude: | - index.html \ No newline at end of file + index.html diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index b343871..339af16 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,4 +1,4 @@ -name: Release +name: release on: push: branches: @@ -6,15 +6,16 @@ on: - dev jobs: release: - name: Release runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v1 + uses: actions/checkout@v3 + with: + fetch-depth: 0 - name: Setup Node.js - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 18 - name: Install dependencies run: npm ci - name: Release diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7e4ae9a..f5e53f9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,20 +1,16 @@ # This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions -name: Test +name: test on: - push: - branches: - - main - - dev pull_request: branches: - main - dev jobs: - build: + test: runs-on: ubuntu-latest