chore: update license year to current #584
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
name: feature | |
on: | |
push: | |
branches: | |
- 'main' | |
- 'feature/*' | |
pull_request: | |
branches: | |
- 'main' | |
- 'feature/*' | |
permissions: | |
contents: read | |
jobs: | |
build-unix: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: ['ubuntu-latest', 'macos-latest'] | |
node-version: [20.x] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Cache dependencies | |
uses: actions/cache@v3 | |
with: | |
path: ~/.npm | |
key: npm-${{ hashFiles('package-lock.json') }} | |
restore-keys: npm- | |
- name: Install dependencies | |
run: | | |
npm ci --ignore-scripts | |
npm audit fix --force | |
npm install -g | |
- name: Test | |
run: npm test | |
env: | |
IS_CI: true | |
- name: Build | |
run: npm run build | |
- name: Run | |
run: npm run figmagic | |
#- name: Run #then check for files | |
# run: | | |
# npm run figmagic | |
# #\[ -d .figmagic \] | |
# #\[ -f .figmagic/figma.json \] | |
build-windows: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: ['windows-latest'] | |
node-version: [20.x] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Cache dependencies | |
uses: actions/cache@v3 | |
with: | |
path: ~/.npm | |
key: npm-${{ hashFiles('package-lock.json') }} | |
restore-keys: npm- | |
- name: Install dependencies | |
run: | | |
npm ci --ignore-scripts | |
npm audit fix --force | |
npm install -g | |
- name: Test | |
run: echo Skipping tests on Windows because of weird platform issues... #npm test | |
- name: Build | |
run: npm run build | |
- name: Run | |
run: npm run figmagic | |
#- name: Run, then check for files | |
# run: | | |
# npm run figmagic | |
# Test-Path .figmagic | |
# Test-Path .figmagic/figma.json -PathType leaf |