This repository has been archived on 2023-07-28. You can view files and clone it, but cannot push or open issues or pull requests.
mastodon-bot/.github/workflows/test-pr.yml

38 lines
943 B
YAML
Raw Normal View History

2020-06-29 15:35:04 +00:00
name: test PR
2020-06-27 13:29:02 +00:00
on:
pull_request:
branches: [ master ]
jobs:
2020-06-29 07:23:59 +00:00
test-matrix:
name: matrix test
2020-06-27 13:29:02 +00:00
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x, 12.x, 14.x]
steps:
- uses: actions/checkout@v2
2020-06-29 15:35:04 +00:00
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
2020-06-27 13:29:02 +00:00
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
2020-06-29 15:35:04 +00:00
run: npm install
run: npm install -g --save-dev shadow-cljs
run: shadow-cljs compile test