chore(dependabot): merge dependencies upgrades #338
Workflow file for this run
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
############################################################### | |
# Copyright (c) 2021, 2023 Contributors to the Eclipse Foundation | |
# | |
# See the NOTICE file(s) distributed with this work for additional | |
# information regarding copyright ownership. | |
# | |
# This program and the accompanying materials are made available under the | |
# terms of the Apache License, Version 2.0 which is available at | |
# https://www.apache.org/licenses/LICENSE-2.0. | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | |
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | |
# License for the specific language governing permissions and limitations | |
# under the License. | |
# | |
# SPDX-License-Identifier: Apache-2.0 | |
############################################################### | |
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | |
name: pr checks | |
on: | |
pull_request: | |
paths: | |
- src/** | |
- yarn.lock | |
jobs: | |
pr-checks: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 | |
- name: Get latest git tag | |
id: git-tag-latest | |
uses: actions-ecosystem/action-get-latest-tag@v1 | |
- name: Remove tag 'v' prefix | |
run: echo "GIT_VERSION=$(echo ${{ steps.git-tag-latest.outputs.tag }} | cut -c2-)" >> $GITHUB_ENV | |
- name: Get npm version | |
id: npm-version | |
uses: martinbeentjes/npm-get-version-action@3cf273023a0dda27efcd3164bdfb51908dd46a5b # v1.3.1 | |
- name: Output versions | |
run: | | |
echo git ${{ env.GIT_VERSION }} | |
echo npm ${{ steps.npm-version.outputs.current-version }} | |
- name: Check if tag already exists | |
if: env.GIT_VERSION == steps.npm-version.outputs.current-version | |
run: | | |
echo git tag for npm versions exists - please run `yarn version --patch` and update PR | |
exit 1 | |
- name: Tag available | |
run: echo versions not equal - running checks | |
- name: Install Dependencies | |
run: yarn | |
- name: Linter Checks | |
run: yarn lint | |
- name: Unit Tests | |
run: CI=true yarn test | |
- name: Build Library | |
run: yarn build |