diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..70be437d --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,36 @@ +name: Build + +on: [push, pull_request] + +jobs: + build: + name: Node ${{ matrix.node_version }} on ${{ matrix.os }} + + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macOS-latest] + node_version: [ + 10.x, # EOL: April 2021 + 12.x, # EOL: April 2022 + ] + + runs-on: ${{ matrix.os }} + + steps: + - uses: actions/checkout@master + + - name: Setup Node.js + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node_version }} + + - name: Install + run: yarn --frozen-lockfile --non-interactive + + - name: Build + run: yarn build + env: + NODE_ENV: production + + - name: Test + run: yarn test diff --git a/README.md b/README.md index 524eceae..16b8a71a 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,9 @@ Travis CI Build Status + Build Status Dependencies Status