Merge pull request #148 from jimmymcp/include-company-in-show-table-data #318
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 | |
# Controls when the action will run. Triggers the workflow on push or pull request | |
# events but only for the master branch | |
on: | |
push: | |
pull_request: | |
branches: [ master ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v4.1.2 | |
- name: npm install, compile and test | |
run: | | |
npm install | |
npm run compile | |
npm test | |
- name: package with vsce | |
run: | | |
npm install -g vsce | |
vsce package | |
- name: run pester tests | |
shell: pwsh | |
run: | | |
Set-PSRepository psgallery -InstallationPolicy Trusted | |
Install-Module Pester | |
Install-Module bccontainerhelper | |
gci *ALTestRunner.psm1 -Recurse | % {$_.FullName; Import-Module $_.FullName} | |
Invoke-Pester | |
- name: Upload a Build Artifact | |
uses: actions/upload-artifact@v4.3.1 | |
with: | |
name: AL Test Runner | |
path: ./*.vsix | |
- name: Publish to marketplace | |
if: github.ref == 'refs/heads/master' | |
run: | | |
vsce publish -p ${{ secrets.VSCE_PAT }} |