Skip to content

Merge pull request #62 from preactjs/1.2.2 #55

Merge pull request #62 from preactjs/1.2.2

Merge pull request #62 from preactjs/1.2.2 #55

Workflow file for this run

name: CI
on:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
build_test:
name: Build & Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '14.x'
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v1
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-yarn-
- run: yarn install --frozen-lockfile
- name: Run build
run: yarn build
- name: Test
run: yarn test