Skip to content

Commit

Permalink
CI workflows based on GitHub actions (#6312)
Browse files Browse the repository at this point in the history
  • Loading branch information
Colengms authored Oct 14, 2020
1 parent 89f609d commit da110e7
Show file tree
Hide file tree
Showing 3 changed files with 161 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/ci_linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: CI (Linux)

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Use Node.js 10.16.x
uses: actions/setup-node@v1
with:
node-version: 10.16.x

- name: Install Dependencies
run: yarn install
working-directory: Extension

- name: Generate hashes for runtime dependency packages
run: yarn run generatePackageHashes
working-directory: Extension

- name: Compile Sources
run: yarn run compile
working-directory: Extension

- name: Validate Extension/package.json
run: yarn run pr-check
working-directory: Extension

- name: Run Linter
run: yarn run lint
working-directory: Extension

- name: Compile Test Sources
run: yarn run pretest
working-directory: Extension

- name: Run unit tests
uses: GabrielBB/[email protected]
with:
run: yarn run unitTests
working-directory: Extension

- name: Run languageServer integration tests
uses: GabrielBB/[email protected]
with:
run: yarn run integrationTests
working-directory: Extension
55 changes: 55 additions & 0 deletions .github/workflows/ci_mac.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: CI (Mac)

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: macos-latest

steps:
- uses: actions/checkout@v2

- name: Use Node.js 10.16.x
uses: actions/setup-node@v1
with:
node-version: 10.16.x

- name: Install Dependencies
run: yarn install
working-directory: Extension

- name: Generate hashes for runtime dependency packages
run: yarn run generatePackageHashes
working-directory: Extension

- name: Compile Sources
run: yarn run compile
working-directory: Extension

- name: Validate Extension/package.json
run: yarn run pr-check
working-directory: Extension

- name: Run Linter
run: yarn run lint
working-directory: Extension

- name: Compile Test Sources
run: yarn run pretest
working-directory: Extension

- name: Run unit tests
uses: GabrielBB/[email protected]
with:
run: yarn run unitTests
working-directory: Extension

- name: Run languageServer integration tests
uses: GabrielBB/[email protected]
with:
run: yarn run integrationTests
working-directory: Extension
51 changes: 51 additions & 0 deletions .github/workflows/ci_windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: CI (Windows)

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: windows-latest

steps:
- uses: actions/checkout@v2

- name: Use Node.js 10.16.x
uses: actions/setup-node@v1
with:
node-version: 10.16.x

- name: Install Dependencies
run: yarn install
working-directory: Extension

- name: Generate hashes for runtime dependency packages
run: yarn run generatePackageHashes
working-directory: Extension

- name: Compile Sources
run: yarn run compile
working-directory: Extension

- name: Validate Extension/package.json
run: yarn run pr-check
working-directory: Extension

- name: Run Linter
run: yarn run lint
working-directory: Extension

- name: Compile Test Sources
run: yarn run pretest
working-directory: Extension

- name: Run unit tests
run: yarn run unitTests
working-directory: Extension

- name: Run languageServer integration tests
run: yarn run integrationTests
working-directory: Extension

0 comments on commit da110e7

Please sign in to comment.