chore(deps-dev): bump picomatch from 2.3.1 to 2.3.2 #11799
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # SPDX-License-Identifier: Apache-2.0 | |
| # name of the action | |
| name: ci | |
| # trigger on pull_request or push events | |
| on: | |
| push: | |
| pull_request: | |
| permissions: | |
| contents: read | |
| env: | |
| CI: 1 | |
| # pipeline to execute | |
| jobs: | |
| # ┌─┐┬ ┌┬┐ ┌─┐┌─┐┬─┐┌┬┐┌─┐┌┬┐ | |
| # ├┤ │ │││───├┤ │ │├┬┘│││├─┤ │ | |
| # └─┘┴─┘┴ ┴ └ └─┘┴└─┴ ┴┴ ┴ ┴ | |
| elm-format: | |
| name: validate elm files | |
| runs-on: ubuntu-latest | |
| permissions: | |
| actions: write # for actions/cache to write to cache location | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3 | |
| with: | |
| path: ~/.npm | |
| key: ${{ runner.os }}-npm-v2-${{ hashFiles('**/package-lock.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-npm-v2- | |
| - uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3 | |
| with: | |
| path: node_modules | |
| key: ${{ runner.os }}-modules-v2-${{ hashFiles('**/package-lock.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-modules-v2- | |
| - uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0 | |
| with: | |
| node-version-file: ".nvmrc" | |
| - name: install dependencies | |
| run: npm ci --prefer-offline --no-audit | |
| - name: install elm-format | |
| run: npm i elm-format@0.8.5 | |
| - name: run elm-format | |
| run: npm run lint:elm | |
| # ┌─┐┬ ┌┬┐ ┌┬┐┌─┐┌─┐┌┬┐ | |
| # ├┤ │ │││───│ ├┤ └─┐ │ | |
| # └─┘┴─┘┴ ┴ ┴ └─┘└─┘ ┴ | |
| elm-test: | |
| name: run elm tests | |
| runs-on: ubuntu-latest | |
| permissions: | |
| actions: write # for actions/cache to write to cache location | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3 | |
| with: | |
| path: ~/.elm | |
| key: ${{ runner.os }}-elm-v3-${{ hashFiles('**/elm.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-elm-v3- | |
| - uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3 | |
| with: | |
| path: ~/.npm | |
| key: ${{ runner.os }}-npm-v2-${{ hashFiles('**/package-lock.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-npm-v2- | |
| - uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3 | |
| with: | |
| path: node_modules | |
| key: ${{ runner.os }}-modules-v2-${{ hashFiles('**/package-lock.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-modules-v2- | |
| - uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0 | |
| with: | |
| node-version-file: ".nvmrc" | |
| - name: install dependencies | |
| run: npm ci --prefer-offline --no-audit | |
| - name: install elm-test | |
| run: npm i elm-test@0.19.1-revision6 | |
| - name: run elm-test | |
| run: npm run test | |
| # ┬ ┬┌┐┌┌┬┐ | |
| # │ ││││ │ | |
| # ┴─┘┴┘└┘ ┴ | |
| lint: | |
| name: lint | |
| runs-on: ubuntu-latest | |
| permissions: | |
| actions: write # for actions/cache to write to cache location | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3 | |
| with: | |
| path: ~/.npm | |
| key: ${{ runner.os }}-npm-v2-${{ hashFiles('**/package-lock.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-npm-v2- | |
| - uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3 | |
| with: | |
| path: node_modules | |
| key: ${{ runner.os }}-modules-v2-${{ hashFiles('**/package-lock.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-modules-v2- | |
| - uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0 | |
| with: | |
| node-version-file: ".nvmrc" | |
| - name: install dependencies | |
| run: npm ci --prefer-offline --no-audit | |
| - name: run linter | |
| run: npm run lint | |
| # ┌─┐┬ ┬┌┐ ┬ ┬┌─┐┬ ┬ | |
| # ├─┘│ │├┴┐│ │└─┐├─┤ | |
| # ┴ └─┘└─┘┴─┘┴└─┘┴ ┴ | |
| publish: | |
| name: build and push to docker | |
| runs-on: ubuntu-latest | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' && github.repository == 'go-vela/ui' | |
| needs: [lint, elm-format, elm-test] | |
| permissions: | |
| actions: write # for actions/cache to write to cache location | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3 | |
| with: | |
| path: ~/.elm | |
| key: ${{ runner.os }}-elm-v3-${{ hashFiles('**/elm.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-elm-v3- | |
| - uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3 | |
| with: | |
| path: ~/.npm | |
| key: ${{ runner.os }}-npm-v2-${{ hashFiles('**/package-lock.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-npm-v2- | |
| - uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3 | |
| with: | |
| path: node_modules | |
| key: ${{ runner.os }}-modules-v2-${{ hashFiles('**/package-lock.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-modules-v2- | |
| - uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0 | |
| with: | |
| node-version-file: ".nvmrc" | |
| # ┌┐ ┬ ┬┬┬ ┌┬┐ | |
| # ├┴┐│ │││ ││ | |
| # └─┘└─┘┴┴─┘─┴┘ | |
| - name: install dependencies | |
| run: npm ci --prefer-offline --no-audit | |
| - name: run development build | |
| run: npm run build | |
| # ┌┬┐┌─┐┌─┐┬┌─┌─┐┬─┐ | |
| # │││ ││ ├┴┐├┤ ├┬┘ | |
| # ─┴┘└─┘└─┘┴ ┴└─┘┴└─ | |
| - name: login to dockerhub | |
| uses: docker/login-action@b45d80f862d83dbcd57f89517bcf500b2ab88fb2 # v4.0.0 | |
| with: | |
| username: ${{ secrets.DOCKER_USERNAME }} | |
| password: ${{ secrets.DOCKER_PASSWORD }} | |
| - name: extract metadata | |
| id: meta | |
| uses: docker/metadata-action@030e881283bb7a6894de51c315a6bfe6a94e05cf # v6.0.0 | |
| with: | |
| images: target/vela-ui | |
| tags: | | |
| # latest | |
| type=raw,value=latest,enable={{is_default_branch}} | |
| - name: build and push image | |
| id: push | |
| uses: docker/build-push-action@d08e5c354a6adb9ed34480a06d141179aa583294 # v7.0.0 | |
| with: | |
| context: . | |
| file: ./Dockerfile | |
| push: true | |
| tags: ${{ steps.meta.outputs.tags }} | |
| labels: ${{ steps.meta.outputs.labels }} |