Update no-nullable-attribute-binding fix for null attribute (#339) #461
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: Test | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
jobs: | |
test: | |
name: Run | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [windows-latest, ubuntu-latest] | |
node: [18, 20] | |
exclude: | |
- os: windows-latest | |
node: "17" | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node }} | |
# npm@9 doesn't support Node 17. | |
- name: Install npm@8 | |
run: npm i -g npm@8 | |
- name: Install | |
run: npm ci | |
- name: Lint | |
if: matrix.os == 'ubuntu-latest' | |
run: npm run lint | |
- name: test | |
run: npm run test:headless | |
- name: Package vscode plugin | |
if: matrix.os == 'ubuntu-latest' | |
run: npm run package && mv packages/vscode-lit-plugin/out/packaged.vsix vscode-lit-plugin.vsix | |
- name: Upload artifacts | |
uses: actions/upload-artifact@master | |
if: matrix.os == 'ubuntu-latest' && matrix.node == 16 | |
with: | |
name: vscode-lit-plugin.vsix | |
path: vscode-lit-plugin.vsix |