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

42 lines
1,009 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 ]
2020-06-29 17:42:28 +00:00
push: [ '!master' ]
2020-06-27 13:29:02 +00:00
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
2020-06-29 15:50:14 +00:00
path: /usr/lib/node_modules
2020-06-29 15:35:04 +00:00
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:42:28 +00:00
2020-06-29 17:12:39 +00:00
- name: test em
run: |
npm install
npm install -g --save-dev shadow-cljs
shadow-cljs compile test