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

Gh actions #36

Merged
merged 13 commits into from Oct 20, 2019

Added back build job

  • Loading branch information
prefixaut committed Oct 20, 2019
commit 89b16cc16b63f8a2c0f065ef37207b642a0c6060
@@ -1,10 +1,10 @@
name: Node CI

Check failure on line 1 in .github/workflows/nodejs.yml

GitHub Actions / Unit Tests with 8 on ubuntu-latest

.github/workflows/nodejs.yml#L1

The job was canceled because "_10_macOS-latest" failed.

Check failure on line 1 in .github/workflows/nodejs.yml

GitHub Actions / Unit Tests with 8 on ubuntu-latest

.github/workflows/nodejs.yml#L1

The operation was canceled.

Check failure on line 1 in .github/workflows/nodejs.yml

GitHub Actions / Unit Tests with 8 on ubuntu-latest

.github/workflows/nodejs.yml#L1

The job was canceled because "_10_macOS-latest" failed.

Check failure on line 1 in .github/workflows/nodejs.yml

GitHub Actions / Unit Tests with 8 on ubuntu-latest

.github/workflows/nodejs.yml#L1

The operation was canceled.

Check failure on line 1 in .github/workflows/nodejs.yml

GitHub Actions / Unit Tests with 8 on macOS-latest

.github/workflows/nodejs.yml#L1

The job was canceled because "_10_macOS-latest" failed.

Check failure on line 1 in .github/workflows/nodejs.yml

GitHub Actions / Unit Tests with 8 on macOS-latest

.github/workflows/nodejs.yml#L1

Error: The process 'npm' failed with exit code 1

Check failure on line 1 in .github/workflows/nodejs.yml

GitHub Actions / Unit Tests with 8 on macOS-latest

.github/workflows/nodejs.yml#L1

🚨 Coverage run failed!

Check failure on line 1 in .github/workflows/nodejs.yml

GitHub Actions / Unit Tests with 8 on macOS-latest

.github/workflows/nodejs.yml#L1

Node run failed with exit code 1

Check failure on line 1 in .github/workflows/nodejs.yml

GitHub Actions / Unit Tests with 10 on ubuntu-latest

.github/workflows/nodejs.yml#L1

The job was canceled because "_10_macOS-latest" failed.

Check failure on line 1 in .github/workflows/nodejs.yml

GitHub Actions / Unit Tests with 10 on ubuntu-latest

.github/workflows/nodejs.yml#L1

The operation was canceled.

Check failure on line 1 in .github/workflows/nodejs.yml

GitHub Actions / Unit Tests with 10 on ubuntu-latest

.github/workflows/nodejs.yml#L1

The job was canceled because "_10_macOS-latest" failed.

Check failure on line 1 in .github/workflows/nodejs.yml

GitHub Actions / Unit Tests with 10 on ubuntu-latest

.github/workflows/nodejs.yml#L1

The operation was canceled.

Check failure on line 1 in .github/workflows/nodejs.yml

GitHub Actions / Unit Tests with 10 on macOS-latest

.github/workflows/nodejs.yml#L1

Error: The process 'npm' failed with exit code 1

Check failure on line 1 in .github/workflows/nodejs.yml

GitHub Actions / Unit Tests with 10 on macOS-latest

.github/workflows/nodejs.yml#L1

🚨 Coverage run failed!

Check failure on line 1 in .github/workflows/nodejs.yml

GitHub Actions / Unit Tests with 10 on macOS-latest

.github/workflows/nodejs.yml#L1

Node run failed with exit code 1

Check failure on line 1 in .github/workflows/nodejs.yml

GitHub Actions / Unit Tests with 12 on ubuntu-latest

.github/workflows/nodejs.yml#L1

The job was canceled because "_10_macOS-latest" failed.

Check failure on line 1 in .github/workflows/nodejs.yml

GitHub Actions / Unit Tests with 12 on ubuntu-latest

.github/workflows/nodejs.yml#L1

The operation was canceled.

Check failure on line 1 in .github/workflows/nodejs.yml

GitHub Actions / Unit Tests with 12 on ubuntu-latest

.github/workflows/nodejs.yml#L1

The job was canceled because "_10_macOS-latest" failed.

Check failure on line 1 in .github/workflows/nodejs.yml

GitHub Actions / Unit Tests with 12 on ubuntu-latest

.github/workflows/nodejs.yml#L1

The operation was canceled.

Check failure on line 1 in .github/workflows/nodejs.yml

GitHub Actions / Unit Tests with 12 on macOS-latest

.github/workflows/nodejs.yml#L1

Error: The process 'npm' failed with exit code 1

Check failure on line 1 in .github/workflows/nodejs.yml

GitHub Actions / Unit Tests with 12 on macOS-latest

.github/workflows/nodejs.yml#L1

🚨 Coverage run failed!

Check failure on line 1 in .github/workflows/nodejs.yml

GitHub Actions / Unit Tests with 12 on macOS-latest

.github/workflows/nodejs.yml#L1

Node run failed with exit code 1

on: push

jobs:
test_unit:
name: test
name: Unit Tests with ${{ matrix.node }} on ${{ matrix.os }}
strategy:
matrix:
node: [8, 10, 12]
@@ -24,4 +24,29 @@
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageCommand: npm run test:unitcoverage
coverageCommand: npm run test:unitcoverage
build:
name: Building Application with ${{ matrix.node }} on ${{ matrix.os }}
needs: [test_unit]
runs-on: ${{ matrix.os }}
strategy:
matrix:
node: [8, 10, 12]
os: [ubuntu-latest, ubuntu-latest, macOS-latest]
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- uses: sergioramos/yarn-actions/install@master
with:
frozen-lockfile: true
- name: Build the Application
if: github.event_name != 'release'
run: yarn build --publish=never
- name: Build the Application and Publish
if: github.event_name == 'release'
run: yarn build --publish=always
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.