Migrate to 1ES pipeline #323
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
linux: | |
name: Linux | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Build Environment | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libxkbfile-dev pkg-config libsecret-1-dev libxss1 dbus xvfb libgtk-3-0 libgbm1 | |
sudo /usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 & | |
sleep 3 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: '11' | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 16 | |
- name: Install Node.js modules | |
run: npm install | |
- name: Install build tools | |
run: npm install -g @vscode/vsce typescript | |
- name: Lint | |
run: npm run tslint | |
- name: Package | |
run: vsce package | |
- name: Test extension | |
run: DISPLAY=:99 npm test | |
- name: Print language server Log if job failed | |
if: ${{ failure() }} | |
run: find $HOME/.config/Code/User/workspaceStorage/*/redhat.java/jdt_ws/.metadata/.log -print -exec cat '{}' \;; | |
windows: | |
name: Windows | |
runs-on: windows-latest | |
timeout-minutes: 30 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: '11' | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 16 | |
- name: Install Node.js modules | |
run: npm install | |
- name: Install build tools | |
run: npm install -g @vscode/vsce typescript --force | |
- name: Lint | |
run: npm run tslint | |
- name: Package | |
run: vsce package | |
- name: Test extension | |
run: npm test | |
- name: Print language server Log if job failed | |
if: ${{ failure() }} | |
run: Get-ChildItem -Path $env:APPDATA/Code/User/workspaceStorage/*/redhat.java/jdt_ws/.metadata/.log | cat | |
darwin: | |
name: macOS | |
runs-on: macos-latest | |
timeout-minutes: 30 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: '11' | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 16 | |
- name: Install Node.js modules | |
run: npm install | |
- name: Install build tools | |
run: npm install -g @vscode/vsce typescript | |
- name: Lint | |
run: npm run tslint | |
- name: Package | |
run: vsce package | |
- name: Test extension | |
run: npm test | |
- name: Print language server Log if job failed | |
if: ${{ failure() }} | |
run: find $HOME/Library/Application\ Support/Code/User/workspaceStorage/*/redhat.java/jdt_ws/.metadata/.log -print -exec cat '{}' \;; |