mirror of
https://github.com/Azure/setup-kubectl.git
synced 2026-04-17 03:56:06 +08:00
* release: prepare v5.1.0 — ESM migration with esbuild/vitest * sync package-lock.json version to 5.1.0 * add version sync check to pre-commit hook * regenerate package-lock.json for npm ci compatibility
23 lines
524 B
YAML
23 lines
524 B
YAML
name: 'Run unit tests.'
|
|
on: # rebuild any PRs and main branch changes
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
- 'releases/*'
|
|
push:
|
|
branches:
|
|
- main
|
|
- 'releases/*'
|
|
|
|
jobs:
|
|
build: # make sure build/ci works properly
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
|
|
- name: Build and run L0 tests.
|
|
run: |
|
|
npm install
|
|
npm run build
|
|
npm test
|