Summary: Adds a step to validate the prepublish steps, and upload the resulting tarball. Pull Request resolved: https://github.com/facebook/yoga/pull/1315 Test Plan: A tarball is uploaded as part of validation and looks decent. Reviewed By: cortinico Differential Revision: D47068368 Pulled By: NickGerleman fbshipit-source-id: 62c8946a1bb542310634c8a7384a0e4890b35bdf
93 lines
1.8 KiB
YAML
93 lines
1.8 KiB
YAML
name: JavaScript
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- main
|
|
workflow_dispatch:
|
|
|
|
env:
|
|
FORCE_COLOR: 3
|
|
|
|
jobs:
|
|
benchmark:
|
|
name: Benchmark [${{ matrix.os }}]
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest, windows-latest]
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Setup
|
|
uses: ./.github/actions/setup-js
|
|
|
|
- name: yarn benchmark
|
|
run: yarn benchmark
|
|
working-directory: javascript
|
|
|
|
build:
|
|
name: Build [${{ matrix.os }}]
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest, windows-latest]
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Setup
|
|
uses: ./.github/actions/setup-js
|
|
|
|
- name: yarn build
|
|
run: yarn build
|
|
working-directory: javascript
|
|
|
|
test:
|
|
name: Test [${{ matrix.os }}]
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest, windows-latest]
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Setup
|
|
uses: ./.github/actions/setup-js
|
|
|
|
- name: yarn test
|
|
run: yarn test
|
|
working-directory: javascript
|
|
|
|
lint:
|
|
name: Lint
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: yarn install
|
|
run: yarn install --frozen-lockfile
|
|
working-directory: javascript
|
|
|
|
- name: yarn lint
|
|
run: yarn lint
|
|
working-directory: javascript
|
|
|
|
pack:
|
|
name: Pack
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Setup
|
|
uses: ./.github/actions/setup-js
|
|
|
|
- name: yarn pack
|
|
run: yarn pack --filename yoga-layout.tar.gz
|
|
working-directory: javascript
|
|
|
|
- uses: actions/upload-artifact@v3
|
|
with:
|
|
name: npm-package
|
|
path: javascript/yoga-layout.tar.gz
|