mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-19 18:27:29 -05:00
GitHub Actions: Test on current Node.js (#282)
* GitHub Actions: Test on current Node.js Node.js 12 is end-of-life. https://nodejs.org/en/about/releases * GitHub Actions: Test on current Node.js * Removed outdated comment Co-authored-by: Peter W <34256109+pww217@users.noreply.github.com>
This commit is contained in:
11
.github/workflows/build.yml
vendored
11
.github/workflows/build.yml
vendored
@@ -1,31 +1,30 @@
|
|||||||
name: Build
|
name: Build
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push: # Only run on merges into master that modify files under pyscriptjs/
|
push: # Only run on merges into master that modify files under pyscriptjs/
|
||||||
branches: main
|
branches: main
|
||||||
paths:
|
paths:
|
||||||
- pyscriptjs/**
|
- pyscriptjs/**
|
||||||
- .github/workflows/** # Test that workflows work when changed
|
- .github/workflows/** # Test that workflows work when changed
|
||||||
|
|
||||||
pull_request: # Run on any PR that modifies files in pyscriptjs/
|
pull_request: # Run on any PR that modifies files in pyscriptjs/
|
||||||
paths:
|
paths:
|
||||||
- pyscriptjs/**
|
- pyscriptjs/**
|
||||||
- .github/workflows/**
|
- .github/workflows/**
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest # Will be self hosted soon
|
runs-on: ubuntu-latest
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
working-directory: ./pyscriptjs
|
working-directory: ./pyscriptjs
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Install node
|
- name: Install node
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 12.x
|
node-version: 18.x
|
||||||
- name: Cache node modules
|
- name: Cache node modules
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
env:
|
env:
|
||||||
|
|||||||
2
.github/workflows/lint.yml
vendored
2
.github/workflows/lint.yml
vendored
@@ -19,7 +19,7 @@ jobs:
|
|||||||
- name: Install node
|
- name: Install node
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 12.x
|
node-version: 18.x
|
||||||
- name: Cache node modules
|
- name: Cache node modules
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
env:
|
env:
|
||||||
|
|||||||
Reference in New Issue
Block a user