mirror of
https://github.com/threeal/cmake-action.git
synced 2025-04-22 19:41:20 +00:00
* ci: remove `latest` branch from triggering workflow run * ci: adjust job names in workflows * ci: adjust step names in workflow jobs * docs(readme): adjust naming in the example workflows * ci: rename `test.yml` workflow to `test.yaml`
40 lines
839 B
YAML
40 lines
839 B
YAML
name: Build
|
|
on:
|
|
workflow_dispatch:
|
|
pull_request:
|
|
push:
|
|
branches: [main]
|
|
jobs:
|
|
build-package:
|
|
name: Build Package
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4.1.1
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4.0.0
|
|
with:
|
|
node-version: latest
|
|
|
|
- name: Update Yarn
|
|
run: corepack enable && yarn set version stable
|
|
|
|
- name: Cache Dependencies
|
|
uses: actions/cache@v3.3.2
|
|
with:
|
|
path: .yarn
|
|
key: yarn-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
|
|
|
|
- name: Install Dependencies
|
|
run: yarn install
|
|
|
|
- name: Check Package
|
|
run: yarn check
|
|
|
|
- name: Bundle Package
|
|
run: yarn bundle
|
|
|
|
- name: Check Differences
|
|
run: git diff --exit-code HEAD
|