mirror of
https://code.forgejo.org/actions/setup-node.git
synced 2025-06-08 21:21:12 +00:00
Add ci and fix linux tests (#8)
* Add actions ci * Add format-check * Test doesnt depend on build * Fix linux tests * Fix other linux test * Use azp for cross-platform support for now * Dogfood ci * Update main.workflow.yml * Update main.workflow.yml * Update main.workflow.yml * Update main.workflow.yml * Update main.workflow.yml * Update main.workflow.yml * back to runs-on * Try lowercase * Back to upper * Pool under runs-on * Switch from install to ci * Make sure we have right version of node * Indenting issues * Install instead of ci to avoid reinstalling tarballs * Update main.workflow.yml * Update main.workflow.yml * Try ci again * Update main.workflow.yml * Update main.workflow.yml * Update main.workflow.yml * Remove logging step * Try pruning first so that devDeps definitely aren't installed * Clean tests * Spacing * Randomize folder for concurrent builds * Dont fail on not being able to unlink * Dont fail on not being able to unlink
This commit is contained in:
parent
075e678472
commit
b9fb64b093
3 changed files with 71 additions and 12 deletions
22
.github/main.workflow.yml
vendored
Normal file
22
.github/main.workflow.yml
vendored
Normal file
|
@ -0,0 +1,22 @@
|
|||
on: push
|
||||
jobs:
|
||||
build:
|
||||
runs-on:
|
||||
pool: ${{ matrix.operating-system }}
|
||||
strategy:
|
||||
matrix:
|
||||
operating-system: [Linux, macOS, Windows]
|
||||
actions:
|
||||
- name: Set Node.js 10.x
|
||||
uses: bryanmacfarlane/node-config@master
|
||||
with:
|
||||
version: 10.x
|
||||
|
||||
- name: npm install
|
||||
run: npm prune --production && npm install
|
||||
|
||||
- name: Lint
|
||||
run: npm run format-check
|
||||
|
||||
- name: npm test
|
||||
run: npm test
|
Loading…
Add table
Add a link
Reference in a new issue