mirror of
https://github.com/azure/login.git
synced 2026-03-12 18:07:08 -04:00
* Consistently use azure/powershell@v1 * Consistently use actions/checkout@v4 * Consistently use actions/setup-node@v4 * Consistently use actions/github-script@v7 * Consistently use actions/stale@v8 * Specify codql language as javascript See https://api.github.com/repos/github/codeql-action/issues/comments/762138640 * Name ci.yml * CodeQL does not need a special code
36 lines
627 B
YAML
36 lines
627 B
YAML
name: Build and Test
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
build_test_job:
|
|
name: 'Build and test job'
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [windows-latest, ubuntu-latest]
|
|
steps:
|
|
|
|
- name: 'Checking out repo code'
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set Node.js 16.x for GitHub Action
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 16.x
|
|
|
|
- name: 'Validate build'
|
|
run: |
|
|
npm install
|
|
npm run build
|
|
|
|
- name: 'Run L0 tests'
|
|
run: |
|
|
npm run test
|