ci: migrate ci to gh actions (#1315)

This commit is contained in:
Jens L
2021-08-30 20:21:15 +02:00
committed by GitHub
parent b1eec5a7d2
commit 69f4d54bae
12 changed files with 363 additions and 646 deletions

View File

@ -6,4 +6,3 @@ dist
coverage
# don't lint generated code
api/
azure-pipelines.yml

View File

@ -1,93 +0,0 @@
trigger:
batch: true
branches:
include:
- master
- next
- version-*
stages:
- stage: lint
jobs:
- job: eslint
pool:
vmImage: 'ubuntu-latest'
steps:
- task: NodeTool@0
inputs:
versionSpec: '16.x'
displayName: 'Install Node.js'
- task: Npm@1
inputs:
command: 'install'
workingDir: 'web/'
- task: CmdLine@2
inputs:
script: make gen-web
- task: Npm@1
inputs:
command: 'custom'
workingDir: 'web/'
customCommand: 'run lint'
- job: prettier
pool:
vmImage: 'ubuntu-latest'
steps:
- task: NodeTool@0
inputs:
versionSpec: '16.x'
displayName: 'Install Node.js'
- task: Npm@1
inputs:
command: 'install'
workingDir: 'web/'
- task: CmdLine@2
inputs:
script: make gen-web
- task: Npm@1
inputs:
command: 'custom'
workingDir: 'web/'
customCommand: 'run prettier-check'
- job: lit_analyse
pool:
vmImage: 'ubuntu-latest'
steps:
- task: NodeTool@0
inputs:
versionSpec: '16.x'
displayName: 'Install Node.js'
- task: Npm@1
inputs:
command: 'install'
workingDir: 'web/'
- task: CmdLine@2
inputs:
script: make gen-web
- task: Npm@1
inputs:
command: 'custom'
workingDir: 'web/'
customCommand: 'run lit-analyse'
- stage: build_local
jobs:
- job: build
pool:
vmImage: 'ubuntu-latest'
steps:
- task: NodeTool@0
inputs:
versionSpec: '16.x'
displayName: 'Install Node.js'
- task: Npm@1
inputs:
command: 'install'
workingDir: 'web/'
- task: CmdLine@2
inputs:
script: make gen-web
- task: Npm@1
inputs:
command: 'custom'
workingDir: 'web/'
customCommand: 'run build'