Bump the npm_and_yarn group across 1 directory with 4 updates #15
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: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
env: | |
JF_ENV_LOCAL: eyJ2ZXJzaW9uIjoxLCJ1cmwiOiJodHRwOi8vMTI3LjAuMC4xOjgwODEvYXJ0aWZhY3RvcnkvIiwidXNlciI6ImFkbWluIiwicGFzc3dvcmQiOiJBUEI3REVaUlBpSHFIRFRRb2tMa3g5aGh6S1QiLCJzZXJ2ZXJJZCI6ImxvY2FsIn0= | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macOS-latest] | |
version: ["", "latest", "1.29.0"] | |
fail-fast: false | |
steps: | |
# Checkout and install prerequisites | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup NodeJS | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "16.x" | |
# Run action according to the input version | |
- name: Setup JFrog CLI | |
if: matrix.version != '' | |
uses: ./ | |
with: | |
version: ${{ matrix.version }} | |
- name: Setup default JFrog CLI | |
if: matrix.version == '' | |
uses: ./ | |
# Run --version | |
- name: Check versions | |
run: jf --version && jfrog --version | |
# Check local server successfully configured | |
- name: Sanity | |
run: jf c show local || jfrog rt config show local | |
# Check build URL | |
- name: Check build URL | |
uses: wei/curl@master | |
with: | |
args: -I ${JFROG_CLI_BUILD_URL} | |
if: runner.os == 'Linux' | |
# Check environment variables | |
- name: Check action environment | |
run: node scripts/check-env.js | |
# Install and run tests | |
- name: Install | |
run: npm i | |
- name: Unit tests | |
run: npm t |