Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

only build node 16 #1127

Merged
merged 6 commits into from
Feb 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
117 changes: 0 additions & 117 deletions .circleci/config.yml

This file was deleted.

14 changes: 14 additions & 0 deletions .github/actions/build-cache/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: 'Build Cache'
description: build cache

runs:
using: 'composite'
steps:
- name: build cache
uses: actions/cache@v3
with:
path: |
node_modules
packages/*/dist
key: ${{ github.run_id }}
restore-keys: ${{ github.run_id }}
25 changes: 25 additions & 0 deletions .github/actions/install-deps/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: 'Setup'
description: Setup action

runs:
using: 'composite'
steps:
- name: Use nodejs
uses: actions/setup-node@v3
with:
node-version: 16.18

- name: restore workspace cache
uses: actions/cache@v3
id: node_modules
with:
path: |
node_modules
packages/*/node_modules
key: node-modules-${{ runner.os }}-${{ steps.node-version.outputs.version }}-${{ hashFiles('yarn.lock') }}
restore-keys: |
node-modules-${{ runner.os }}-${{ steps.node-version.outputs.version }}-

- run: yarn install --frozen-lockfile --network-timeout 9000000
if: steps.node_modules.outputs.cache-hit != 'true'
shell: bash
73 changes: 73 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: build

on: [push]

jobs:
# Run install in one step so deps can be cached for other steps
install:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install-deps

build:
runs-on: ubuntu-latest
needs: install
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install-deps
- uses: ./.github/actions/build-cache
- run: yarn build

lint:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install-deps
- uses: ./.github/actions/build-cache
- run: yarn lint

test-types:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install-deps
- uses: ./.github/actions/build-cache
- run: yarn tsTest:custom && yarn tsTest:main

test:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install-deps
- uses: ./.github/actions/build-cache
- run: yarn test

test-browser:
runs-on: ubuntu-latest
needs: build
if: ${{ false }} # disable for now
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install-deps
- uses: ./.github/actions/build-cache
- run: yarn test:browser --ci

release:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: ./.github/actions/install-deps
- uses: ./.github/actions/build-cache
- name: Create Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
yarn release
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"@babel/preset-env": "^7.7.1",
"@babel/register": "^7.7.0",
"@babel/runtime": "^7.7.2",
"auto": "^9.19.5",
"auto": "^10.37.6",
"babel-eslint": "^10.0.3",
"babel-plugin-add-module-exports": "^1.0.2",
"babel-plugin-istanbul": "^5.2.0",
Expand Down
Loading