From 437033ef25f563061ed4908f35cb3db79e4d55b0 Mon Sep 17 00:00:00 2001 From: jem Date: Mon, 13 Jul 2020 18:23:07 +0200 Subject: [PATCH] add unstable build --- .github/workflows/{build.yml => stable.yml} | 6 +-- .github/workflows/unstable.yml | 41 +++++++++++++++++++++ 2 files changed, 44 insertions(+), 3 deletions(-) rename .github/workflows/{build.yml => stable.yml} (98%) create mode 100644 .github/workflows/unstable.yml diff --git a/.github/workflows/build.yml b/.github/workflows/stable.yml similarity index 98% rename from .github/workflows/build.yml rename to .github/workflows/stable.yml index e572ec8..63563c0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/stable.yml @@ -1,12 +1,12 @@ -name: build-it +name: stable on: push: tags: - '[0-9]+.[0-9]+.[0-9]+' jobs: - build-it: - name: build-it + stable: + name: stable runs-on: ubuntu-latest strategy: matrix: diff --git a/.github/workflows/unstable.yml b/.github/workflows/unstable.yml new file mode 100644 index 0000000..404de48 --- /dev/null +++ b/.github/workflows/unstable.yml @@ -0,0 +1,41 @@ +name: unstable +on: + push: + tags: + - '![0-9]+.[0-9]+.[0-9]+' + +jobs: + unstable: + name: unstable + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [14.x] + + steps: + - uses: actions/checkout@v2 + + - 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 }}- + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + registry-url: 'https://registry.npmjs.org' + + - name: test em + run: | + npm install + npm install -g --save-dev shadow-cljs + shadow-cljs compile test