fix: object key being wrongly transformed #31
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: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
node-version: [12.x, 14.x, 16.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
# Caching: root project | |
- name: Get Yarn cache directory | |
id: yarn-cache-dir-path | |
run: echo "::set-output name=dir::$(yarn cache dir)" | |
# Note: Yarn root cache restore is slow (1:30) on Windows, so only do on Linux. | |
- name: Use Yarn cache | |
if: startsWith(runner.os, 'Linux') | |
uses: actions/cache@v2 | |
id: yarn-cache | |
with: | |
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | |
key: yarn-${{ runner.os }}-${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
yarn-${{ runner.os }}-${{ matrix.node-version }}- | |
yarn-${{ runner.os }}- | |
- name: Use node_modules cache | |
id: node-modules-cache | |
uses: actions/cache@v2 | |
with: | |
path: node_modules | |
key: node-modules-${{ runner.os }}-${{ matrix.node-version }}-${{ hashFiles('./yarn.lock') }} | |
restore-keys: | | |
node-modules-${{ runner.os }}-${{ matrix.node-version }}- | |
node-modules-${{ runner.os }}- | |
- name: Project installation | |
if: steps.node-modules-cache.outputs.cache-hit != 'true' | |
run: yarn install --prefer-offline --frozen-lockfile --non-interactive | |
env: | |
CI: true | |
- name: Checks | |
run: yarn run check |