mirror of
https://github.com/ilammy/msvc-dev-cmd.git
synced 2026-09-07 06:07:19 +08:00
674ff850cb
Instead of the v1 tag, that is. This makes it possible to push changes to release/v1 branch and get CI test them without actually moving the release tag which effectively publishes the updates to users.
32 lines
705 B
YAML
32 lines
705 B
YAML
name: msvc-dev-cmd (release)
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- release/*
|
|
schedule:
|
|
- cron: '0 6 * * *'
|
|
|
|
jobs:
|
|
test:
|
|
name: release
|
|
runs-on: windows-latest
|
|
steps:
|
|
- name: Setup Developer Command Prompt
|
|
uses: ilammy/msvc-dev-cmd@release/v1
|
|
- name: Check out source code
|
|
uses: actions/checkout@v2
|
|
- name: Compile and run some C code
|
|
shell: cmd
|
|
run: |
|
|
cl.exe hello.c
|
|
hello.exe
|
|
audit:
|
|
name: npm audit
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out source code
|
|
uses: actions/checkout@v2
|
|
- run: npm audit --audit-level=moderate --production
|
|
- run: npm audit --audit-level=critical
|