diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000000000..9986269fe3e03 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,29 @@ +name: Build + +on: [pull_request] + +jobs: + test: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [10.x, 12.x, 14.x] + + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: npm install -g yarn + - name: yarn install, build and test + run: | + yarn --frozen-lockfile + ./node_modules/.bin/lerna run pretest --since origin/${{ github.base_ref }} --include-dependencies + ./node_modules/.bin/lerna run test --since origin/${{ github.base_ref }} + env: + CI: true \ No newline at end of file diff --git a/.github/workflows/codebuild-pr-test.yml b/.github/workflows/push.yml similarity index 90% rename from .github/workflows/codebuild-pr-test.yml rename to .github/workflows/push.yml index 67853b57ec683..7f57976c6ad73 100644 --- a/.github/workflows/codebuild-pr-test.yml +++ b/.github/workflows/push.yml @@ -1,10 +1,8 @@ -name: CI +name: Push on: push: branches: [ master ] - pull_request: - branches: [ master ] jobs: build: