Skip to content

chore / CLOUD-25080 / check presence of file headers (#22) #13

chore / CLOUD-25080 / check presence of file headers (#22)

chore / CLOUD-25080 / check presence of file headers (#22) #13

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: ['main']
pull_request:
branches: ['main']
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
run_linter:
name: 🧪 Lint files
runs-on: ubuntu-latest
steps:
- name: 👓 Checkout repository
uses: actions/checkout@v3
- uses: ./.github/actions/setup
- name: 📝 Execute linter
run: pnpm lint:check:all
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- uses: pnpm/action-setup@v2
name: Install pnpm
id: pnpm-install
with:
version: 9
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
- run: pnpm run build
- run: pnpm run build:testing
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: './testing/dist/'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1