Skip to content

Commit

Permalink
debug github action
Browse files Browse the repository at this point in the history
  • Loading branch information
dengnao-tw committed Oct 16, 2023
1 parent 7bd01a3 commit ca103d4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 20 deletions.
26 changes: 8 additions & 18 deletions .github/workflows/bruno-cli.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,21 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: Node.js CI
name: bruno cli CI

on:
push:
branches: [ "main" ]
branches: [ main ]
pull_request:
branches: [ "main" ]
branches: [ main ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci

- run: npm test
- run: npm install
- name: Change directory
run: cd api-collects
- name: run tests
run: npm test
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "Bruno API Test Starter",
"name": "Bruno API test starter",
"version": "1.0.0",
"description": "a Bruno API Test cli demo repository by bruno",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "bru run --env demo"
},
"keywords": [
"bruno",
Expand Down

0 comments on commit ca103d4

Please sign in to comment.