Skip to content

Commit

Permalink
name CI properly
Browse files Browse the repository at this point in the history
  • Loading branch information
maximilianMairinger committed May 19, 2023
1 parent 1ed1014 commit 0182cb8
Showing 1 changed file with 63 additions and 30 deletions.
93 changes: 63 additions & 30 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,19 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@master
- uses: actions/setup-node@master
- name: Checkout
uses: actions/checkout@master
- name: Setup Node
uses: actions/setup-node@master
with:
node-version: '16.x'
- run: |
npm i
npm run test --if-present


- name: Install dependencies
run: npm i
- name: Testing
run: npm run test --if-present

env:
CI: true

Expand All @@ -23,14 +29,20 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@master
- uses: actions/setup-node@master
- name: Checkout
uses: actions/checkout@master
- name: Setup Node
uses: actions/setup-node@master
with:
node-version: '16.x'
- run: |
npm i
npm run buildESM
node CI/nodeEsm.mjs

- name: Install dependencies
run: npm i
- name: Building
run: npm run buildESM
- name: Run checks
run: node CI/nodeEsm.mjs

env:
CI: true

Expand All @@ -40,14 +52,20 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@master
- uses: actions/setup-node@master
- name: Checkout
uses: actions/checkout@master
- name: Setup Node
uses: actions/setup-node@master
with:
node-version: '16.x'
- run: |
npm i
npm run buildCJS
node CI/nodeCjs.js

- name: Install dependencies
run: npm i
- name: Building
run: npm run buildCJS
- name: Run checks
run: node CI/nodeCjs.js

env:
CI: true

Expand All @@ -57,17 +75,24 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@master
- uses: actions/setup-node@master
- name: Checkout
uses: actions/checkout@master
- name: Setup Node
uses: actions/setup-node@master
with:
node-version: '16.x'
- uses: denoland/setup-deno@v1
- name: Setup Deno
uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- run: |
npm i
npm run buildESM
deno run CI/nodeEsm.mjs

- name: Install dependencies
run: npm i
- name: Building
run: npm run buildESM
- name: Run checks
run: deno run CI/nodeEsm.mjs

env:
CI: true

Expand All @@ -76,14 +101,21 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@master
- uses: actions/setup-node@master
- name: Checkout
uses: actions/checkout@master
- name: Setup Node
uses: actions/setup-node@master
with:
node-version: '16.x'
- run: |
npm i
npm run buildESM
npm link

- name: Install dependencies
run: npm i
- name: Building
run: npm run buildESM
- name: Linking CLI
run: npm link
- name: Run tests
run: |
cross-platform-specs --help
cross-platform-specs environment
cross-platform-specs osName
Expand All @@ -98,6 +130,7 @@ jobs:
cross-platform-specs memAvailable
cross-platform-specs memFree
cross-platform-specs
env:
CI: true

Expand Down

0 comments on commit 0182cb8

Please sign in to comment.