Skip to content

nightly

nightly #395

Workflow file for this run

name: nightly
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [18]
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- name: 'setup node: ${{ matrix.node-version }} platform: ${{ matrix.os }}'
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: setup linux
if: runner.os == 'Linux'
run: |
/usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 & echo ">>> Started xvfb";
wget https://apt.puppetlabs.com/puppet8-release-jammy.deb;
sudo dpkg -i puppet8-release-jammy.deb;
sudo apt-get update -y;
sudo apt-get install pdk -y;
pdk --version;
- name: setup macos
if: runner.os == 'macOS'
run: |
export HOMEBREW_NO_AUTO_UPDATE=1;
brew install --cask puppetlabs/puppet/pdk;
/opt/puppetlabs/pdk/bin/pdk --version;
- name: setup windows
if: runner.os == 'Windows'
run: |
choco install pdk -y
- name: Install psake
shell: pwsh
run: Install-Module psake -Force
- name: npm install
shell: pwsh
run: |
npm install -g vsce --silent;
npm install --silent;
- name: Run ESLint
run: npm run lint
- name: npm build
shell: pwsh
run: |
invoke-psake -taskList 'build'
- name: npm test
env:
BUILD_VERSION: '0.99.${{ github.event.number }}'
VSCODE_BUILD_VERBOSE: true
DISPLAY: ':99.0'
shell: pwsh
run: |
npm test
- name: vsce package
if: runner.os == 'Linux'
env:
BUILD_VERSION: '0.99.${{ github.event.number }}'
shell: pwsh
run: |
invoke-psake -properties @{ packageVersion = $env:BUILD_VERSION } -tasklist bump
mkdir artifacts
vsce package --out artifacts/puppet-vscode-$env:BUILD_VERSION.vsix
- name: upload vsix
if: runner.os == 'Linux'
uses: actions/upload-artifact@master
with:
name: 'puppet-vscode'
path: artifacts