chore(deps): update dependency rimraf to v6 (#809) #10100
This file contains 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: | |
env: | |
CI: 1 | |
# pipeline to execute | |
jobs: | |
# ┌─┐┬ ┌┬┐ ┌─┐┌─┐┬─┐┌┬┐┌─┐┌┬┐ | |
# ├┤ │ │││───├┤ │ │├┬┘│││├─┤ │ | |
# └─┘┴─┘┴ ┴ └ └─┘┴└─┴ ┴┴ ┴ ┴ | |
elm-format: | |
name: validate elm files | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-npm-v2-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-npm-v2- | |
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 | |
with: | |
path: node_modules | |
key: ${{ runner.os }}-modules-v2-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-modules-v2- | |
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 | |
with: | |
path: ~/.cache/Cypress | |
key: cypress-${{ runner.os }}-bin-v2-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
cypress-${{ runner.os }}-bin-v2- | |
- uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4 | |
with: | |
node-version-file: '.nvmrc' | |
- name: install dependencies | |
run: npm ci --prefer-offline --no-audit | |
- name: install elm-format | |
run: npm i [email protected] | |
- name: run elm-format | |
run: npm run lint:elm | |
# ┌─┐┬ ┌┬┐ ┌┬┐┌─┐┌─┐┌┬┐ | |
# ├┤ │ │││───│ ├┤ └─┐ │ | |
# └─┘┴─┘┴ ┴ ┴ └─┘└─┘ ┴ | |
elm-test: | |
name: run elm tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 | |
with: | |
path: ~/.elm | |
key: ${{ runner.os }}-elm-v3-${{ hashFiles('**/elm.json') }} | |
restore-keys: | | |
${{ runner.os }}-elm-v3- | |
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-npm-v2-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-npm-v2- | |
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 | |
with: | |
path: node_modules | |
key: ${{ runner.os }}-modules-v2-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-modules-v2- | |
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 | |
with: | |
path: ~/.cache/Cypress | |
key: cypress-${{ runner.os }}-bin-v2-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
cypress-${{ runner.os }}-bin-v2- | |
- uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4 | |
with: | |
node-version-file: '.nvmrc' | |
- name: install dependencies | |
run: npm ci --prefer-offline --no-audit | |
- name: install elm-test | |
run: npm i [email protected] | |
- name: run elm-test | |
run: npm run test | |
# ┬ ┬┌┐┌┌┬┐ | |
# │ ││││ │ | |
# ┴─┘┴┘└┘ ┴ | |
lint: | |
name: lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-npm-v2-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-npm-v2- | |
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 | |
with: | |
path: node_modules | |
key: ${{ runner.os }}-modules-v2-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-modules-v2- | |
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 | |
with: | |
path: ~/.cache/Cypress | |
key: cypress-${{ runner.os }}-bin-v2-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
cypress-${{ runner.os }}-bin-v2- | |
- uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4 | |
with: | |
node-version-file: '.nvmrc' | |
- name: install dependencies | |
run: npm ci --prefer-offline --no-audit | |
- name: run linter | |
run: npm run lint | |
# ┌─┐┬ ┬┌─┐┬─┐┌─┐┌─┐┌─┐ | |
# │ └┬┘├─┘├┬┘├┤ └─┐└─┐ | |
# └─┘ ┴ ┴ ┴└─└─┘└─┘└─┘ | |
integration: | |
name: run cypress tests | |
runs-on: ubuntu-latest | |
env: | |
VELA_API: 'http://localhost:8080' | |
TERM: xterm | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 | |
with: | |
path: ~/.elm | |
key: ${{ runner.os }}-elm-v3-${{ hashFiles('**/elm.json') }} | |
restore-keys: | | |
${{ runner.os }}-elm-v3- | |
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-npm-v2-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-npm-v2- | |
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 | |
with: | |
path: node_modules | |
key: ${{ runner.os }}-modules-v2-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-modules-v2- | |
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 | |
with: | |
path: ~/.cache/Cypress | |
key: cypress-${{ runner.os }}-bin-v2-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
cypress-${{ runner.os }}-bin-v2- | |
- uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4 | |
with: | |
node-version-file: '.nvmrc' | |
- name: install dependencies | |
run: npm ci --prefer-offline --no-audit | |
- name: run cypress tests | |
run: npm run test:cy | |
# ┌─┐┬ ┬┌┐ ┬ ┬┌─┐┬ ┬ | |
# ├─┘│ │├┴┐│ │└─┐├─┤ | |
# ┴ └─┘└─┘┴─┘┴└─┘┴ ┴ | |
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, integration] | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 | |
with: | |
path: ~/.elm | |
key: ${{ runner.os }}-elm-v3-${{ hashFiles('**/elm.json') }} | |
restore-keys: | | |
${{ runner.os }}-elm-v3- | |
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-npm-v2-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-npm-v2- | |
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 | |
with: | |
path: node_modules | |
key: ${{ runner.os }}-modules-v2-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-modules-v2- | |
- uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4 | |
with: | |
node-version-file: '.nvmrc' | |
# ┌┐ ┬ ┬┬┬ ┌┬┐ | |
# ├┴┐│ │││ ││ | |
# └─┘└─┘┴┴─┘─┴┘ | |
- name: install dependencies | |
run: npm ci --prefer-offline --no-audit | |
- name: run development build | |
run: npm run build | |
# ┌┬┐┌─┐┌─┐┬┌─┌─┐┬─┐ | |
# │││ ││ ├┴┐├┤ ├┬┘ | |
# ─┴┘└─┘└─┘┴ ┴└─┘┴└─ | |
- name: push to docker | |
uses: elgohr/Publish-Docker-Github-Action@eb53b3ec07136a6ebaed78d8135806da64f7c7e2 # v5 | |
with: | |
name: target/vela-ui | |
cache: true | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} |