Skip to content

Update dependency @swc/core to v1.10.8 (#300) #2343

Update dependency @swc/core to v1.10.8 (#300)

Update dependency @swc/core to v1.10.8 (#300) #2343

Workflow file for this run

name: CI
on:
push:
branches:
- main
- renovate/*
pull_request:
branches:
- main
workflow_call:
inputs:
version:
description: The npm version
default: ""
required: false
type: string
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Install dependencies
run: npm ci
- name: Run ESLint
run: npx nx run-many --target lint
- name: Run Prettier
run: npx prettier --check .
- name: Run CSpell
run: npx cspell "**/*.*"
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Install dependencies
run: npm ci
- name: Build
run: npx nx run-many --target build
- name: Set Version
if: inputs.version != ''
run: npx nx run-many --target version --args="--version=${{ inputs.version }}"
- name: Upload Builds
uses: actions/upload-artifact@v4
with:
name: Build
path: dist
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Install dependencies
run: npm ci
- name: Test
run: npx nx run-many --target test -- --ci --coverage
- name: Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: coverage
e2e:
strategy:
fail-fast: true
max-parallel: 3
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
node:
- 18
- 20
- 21
name: E2E Test (Node ${{ matrix.node }} on ${{ matrix.os }})
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: npm
- name: Install dependencies
run: npm ci
- name: Run E2E Tests
run: npx nx run-many --target e2e -- --ci
env:
E2E_GITHUB_USERNAME: ${{ secrets.E2E_GITHUB_USERNAME }}
E2E_GITHUB_PAT: ${{ secrets.E2E_GITHUB_PAT }}
E2E_GITLAB_USERNAME: ${{ secrets.E2E_GITLAB_USERNAME }}
E2E_GITLAB_PAT: ${{ secrets.E2E_GITLAB_PAT }}