Merge pull request #754 from l-qing/feat/update-tekton-scheme-to-v0.56 #826
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
# This is a basic workflow | |
name: CI | |
# Controls when the action will run. Triggers the workflow on push or pull request | |
# events but only for the main branch | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
# This workflow contains a single job called "build" | |
build: | |
# The type of runner that the job will run on | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest, windows-latest, ubuntu-latest] | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
# Set up Node | |
- name: Use Node 16.x | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 16.11.0 | |
# Run install dependencies | |
- name: Install dependencies | |
run: npm i | |
# Build extension | |
- name: Run prepublish | |
run: npm run vscode:prepublish | |
# Run tests | |
- name: Run Tests | |
uses: GabrielBB/[email protected] | |
with: | |
run: npm test --silent | |
# Run UI tests | |
- name: Run UI Tests | |
uses: GabrielBB/[email protected] | |
with: | |
run: npm run public-ui-test | |
options: -screen 0 1920x1080x24 | |
# Archiving integration tests artifacts | |
- name: Upload test artifacts | |
uses: actions/upload-artifact@v2 | |
if: failure() | |
with: | |
name: artifacts-${{ matrix.os }} | |
path: | | |
test-resources/screenshots/*.png | |
retention-days: 2 | |
# Upload coverage to codecov.io | |
- name: Codecov | |
uses: codecov/[email protected] | |
if: runner.os == 'Linux' |