CI #24
Workflow file for this run
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: CI | |
on: | |
push: | |
tags: | |
- v* | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
check-latest: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
- name: Install dependencies | |
run: npm ci | |
- name: Lint check | |
if: ${{ matrix.os != 'windows-latest' }} | |
run: npm run lint | |
- name: Test | |
run: npm run test | |
- name: Build | |
run: npm run build | |
- name: Run Action | |
uses: ./ | |
with: | |
check-latest: true | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Test if the executable is available | |
run: v version | |
ignore-stable-without-latest-flag: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
- name: Install dependencies | |
run: npm ci | |
- name: Lint check | |
if: ${{ matrix.os != 'windows-latest' }} | |
run: npm run lint | |
- name: Test | |
run: npm run test | |
- name: Build | |
run: npm run build | |
- name: Run Action | |
uses: ./ | |
with: | |
stable: true | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Test if the executable is available | |
run: v version | |
check-latest-stable: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
- name: Install dependencies | |
run: npm ci | |
- name: Lint check | |
if: ${{ matrix.os != 'windows-latest' }} | |
run: npm run lint | |
- name: Test | |
run: npm run test | |
- name: Build | |
run: npm run build | |
- name: Run Action | |
uses: ./ | |
with: | |
check-latest: true | |
stable: true | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Test if the executable is available | |
run: v version | |
version: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
version: [weekly.2024.06] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
- name: Install dependencies | |
run: npm ci | |
- name: Lint check | |
if: ${{ matrix.os != 'windows-latest' }} | |
run: npm run lint | |
- name: Test | |
run: npm run test | |
- name: Build | |
run: npm run build | |
- name: Run Action | |
uses: ./ | |
with: | |
version: ${{ matrix.version }} | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Test if the executable is available | |
run: v version |