Skip to content

Commit

Permalink
Setup GH actions (#1034)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed May 6, 2022
1 parent 971951f commit bed66b3
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 32 deletions.
67 changes: 67 additions & 0 deletions .github/workflows/ci.yml
@@ -0,0 +1,67 @@
name: CI

on: [push, pull_request]

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Use Node.js latest
uses: actions/setup-node@v3
with:
node-version: "*"
cache: "yarn"
- name: Bootstrap
run: yarn && yarn bootstrap
- name: Build
run: yarn build
- uses: actions/upload-artifact@v3
with:
name: lib
path: |
packages/*/lib/**/*
utils/*/lib/**
lint:
name: Lint
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Use Node.js latest
uses: actions/setup-node@v3
with:
node-version: "*"
cache: "yarn"
- name: Install
run: yarn
- name: Lint
run: yarn lint

test:
name: Test on Node.js # GitHub will add ${{ matrix.node-version }} to this title
needs: build
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [16, 14, 12, 10, 8, 6]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }} # Checkout node version for test executor
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "yarn"
- name: Install
run: yarn && yarn bootstrap
- uses: actions/download-artifact@v3
with:
name: lib
- name: Test
run: yarn test
32 changes: 0 additions & 32 deletions appveyor.yml

This file was deleted.

0 comments on commit bed66b3

Please sign in to comment.