chore(deps): bump thenify from 3.3.0 to 3.3.1 (#42) #78
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] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Setup node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 12 | |
- name: Get yarn cache | |
id: yarn-cache | |
run: echo "::set-output name=dir::$(yarn cache dir)" | |
- uses: actions/cache@v1 | |
with: | |
path: ${{ steps.yarn-cache.outputs.dir }} | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn- | |
- name: Install dependencies | |
run: yarn install --frozen-lockfile | |
- name: Build project | |
run: yarn build | |
- name: Upload @rsql/ast artifact | |
uses: actions/upload-artifact@v1 | |
with: | |
name: ast | |
path: packages/ast/dist | |
- name: Upload @rsql/builder artifact | |
uses: actions/upload-artifact@v1 | |
with: | |
name: builder | |
path: packages/builder/dist | |
- name: Upload @rsql/emitter artifact | |
uses: actions/upload-artifact@v1 | |
with: | |
name: emitter | |
path: packages/emitter/dist | |
- name: Upload @rsql/parser artifact | |
uses: actions/upload-artifact@v1 | |
with: | |
name: parser | |
path: packages/parser/dist | |
test: | |
runs-on: ${{ matrix.os }} | |
needs: build | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
node: | |
- "8" | |
- "10" | |
- "12" | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Setup node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Get yarn cache | |
id: yarn-cache | |
run: echo "::set-output name=dir::$(yarn cache dir)" | |
- uses: actions/cache@v1 | |
with: | |
path: ${{ steps.yarn-cache.outputs.dir }} | |
key: ${{ runner.os }}-node-${{ matrix.node }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-node-${{ matrix.node }}-yarn- | |
- name: Install dependencies | |
run: yarn install --frozen-lockfile --ignore-engines | |
- name: Download @rsql/ast artifact | |
uses: actions/download-artifact@v1 | |
with: | |
name: ast | |
path: packages/ast/dist | |
- name: Download @rsql/builder artifact | |
uses: actions/download-artifact@v1 | |
with: | |
name: builder | |
path: packages/builder/dist | |
- name: Download @rsql/emitter artifact | |
uses: actions/download-artifact@v1 | |
with: | |
name: emitter | |
path: packages/emitter/dist | |
- name: Download @rsql/parser artifact | |
uses: actions/download-artifact@v1 | |
with: | |
name: parser | |
path: packages/parser/dist | |
- name: Run tests | |
run: yarn test | |
release: | |
runs-on: ubuntu-latest | |
needs: test | |
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')" | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Prepare repository | |
run: git fetch --unshallow --tags | |
- name: Setup node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 12 | |
- name: Get yarn cache | |
id: yarn-cache | |
run: echo "::set-output name=dir::$(yarn cache dir)" | |
- uses: actions/cache@v1 | |
with: | |
path: ${{ steps.yarn-cache.outputs.dir }} | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn- | |
- name: Install dependencies | |
run: yarn install --frozen-lockfile --ignore-engines | |
- name: Download @rsql/ast artifact | |
uses: actions/download-artifact@v1 | |
with: | |
name: ast | |
path: packages/ast/dist | |
- name: Download @rsql/builder artifact | |
uses: actions/download-artifact@v1 | |
with: | |
name: builder | |
path: packages/builder/dist | |
- name: Download @rsql/emitter artifact | |
uses: actions/download-artifact@v1 | |
with: | |
name: emitter | |
path: packages/emitter/dist | |
- name: Download @rsql/parser artifact | |
uses: actions/download-artifact@v1 | |
with: | |
name: parser | |
path: packages/parser/dist | |
- name: Release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: yarn release |