Skip to content

Bump webpack from 5.52.1 to 5.94.0 in /inline-js-parser #505

Bump webpack from 5.52.1 to 5.94.0 in /inline-js-parser

Bump webpack from 5.52.1 to 5.94.0 in /inline-js-parser #505

Workflow file for this run

name: pipeline
on:
- push
- pull_request
jobs:
nix:
name: nix-${{ matrix.os }}-${{ matrix.ghc }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-11
ghc:
- ghc8107
- ghc884
- ghc865
steps:
- name: checkout
uses: actions/checkout@v2
- name: setup-nix
uses: cachix/[email protected]
with:
extra_nix_config: |
substituters = https://cache.nixos.org https://hydra.iohk.io
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=
- name: setup-cachix
uses: cachix/cachix-action@v10
with:
name: asterius
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
- name: cachix-watch-store
run: |
cachix watch-store -c9 asterius &
- name: test
run: |
nix-build --keep-going --no-out-link --arg ghcs '["${{ matrix.ghc }}"]' nix/ci.nix
cabal:
name: cabal-${{ matrix.os }}-${{ matrix.ghc }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- windows-2022
ghc:
- 9.0.1
- 8.10.7
- 8.8.4
- 8.6.5
steps:
- name: checkout
uses: actions/checkout@v2
- name: setup-haskell
id: setup-haskell
uses: haskell/actions/setup@v1
with:
ghc-version: ${{ matrix.ghc }}
- name: cache
uses: actions/cache@v2
with:
key: cabal-${{ matrix.os }}-${{ matrix.ghc }}-${{ github.run_id }}
restore-keys: cabal-${{ matrix.os }}-${{ matrix.ghc }}-
path: |
${{ steps.setup-haskell.outputs.cabal-store }}
dist-newstyle
- name: build
run: |
C:\msys64\msys2_shell.cmd -mingw64 -defterm -full-path -here -no-start -c "cabal v2-build all"
- name: setup-node-16
uses: actions/setup-node@v2
with:
node-version: 16
check-latest: true
- name: test-node-16
run: |
node --version
C:\msys64\msys2_shell.cmd -mingw64 -defterm -full-path -here -no-start -c "cabal v2-run inline-js-tests -- -j2"
- name: setup-node-15
uses: actions/setup-node@v2
with:
node-version: 15
check-latest: true
- name: test-node-15
run: |
node --version
C:\msys64\msys2_shell.cmd -mingw64 -defterm -full-path -here -no-start -c "cabal v2-run inline-js-tests -- -j2"
- name: setup-node-14
uses: actions/setup-node@v2
with:
node-version: 14
check-latest: true
- name: test-node-14
run: |
node --version
C:\msys64\msys2_shell.cmd -mingw64 -defterm -full-path -here -no-start -c "cabal v2-run inline-js-tests -- -j2"
- name: setup-node-13
uses: actions/setup-node@v2
with:
node-version: 13
check-latest: true
- name: test-node-13
run: |
node --version
C:\msys64\msys2_shell.cmd -mingw64 -defterm -full-path -here -no-start -c "cabal v2-run inline-js-tests -- -j2"
- name: setup-node-12
uses: actions/setup-node@v2
with:
node-version: 12
check-latest: true
- name: test-node-12
run: |
node --version
C:\msys64\msys2_shell.cmd -mingw64 -defterm -full-path -here -no-start -c "cabal v2-run inline-js-tests -- -j2"
- name: setup-node-10
uses: actions/setup-node@v2
with:
node-version: 10
check-latest: true
- name: test-node-10
run: |
node --version
C:\msys64\msys2_shell.cmd -mingw64 -defterm -full-path -here -no-start -c "cabal v2-run inline-js-tests -- -j2"
sdist-haddock:
name: sdist-haddock
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: setup-haskell
id: setup-haskell
uses: haskell/actions/setup@v1
with:
ghc-version: 8.10.7
- name: cache
uses: actions/cache@v2
with:
key: sdist-haddock-${{ github.run_id }}
restore-keys: sdist-haddock-
path: |
${{ steps.setup-haskell.outputs.cabal-store }}
dist-newstyle
- name: check
run: |
for pkg in inline-js inline-js-core inline-js-examples inline-js-tests; do
pushd $pkg
cabal check
popd
done
- name: sdist
run: |
cabal v2-sdist all
- name: sdist-artifact
uses: actions/upload-artifact@v2
with:
name: sdist
path: dist-newstyle/sdist/*.tar.gz
- name: haddock
run: |
cabal v2-haddock \
--enable-documentation \
--haddock-for-hackage \
--haddock-hyperlink-source \
--haddock-quickjump \
all
- name: haddock-artifact
uses: actions/upload-artifact@v2
with:
name: haddock
path: dist-newstyle/*-docs.tar.gz
docs:
name: docs
runs-on: ubuntu-latest
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
steps:
- name: checkout
uses: actions/checkout@v2
- name: setup-haskell
id: setup-haskell
uses: haskell/actions/setup@v1
with:
enable-stack: true
stack-no-global: true
- name: cache
uses: actions/cache@v2
with:
key: docs-${{ github.run_id }}
restore-keys: docs-
path: |
${{ steps.setup-haskell.outputs.stack-root }}
**/.stack-work
- name: build
run: |
stack build --haddock
if [ ! -z "$NETLIFY_AUTH_TOKEN" ]
then
if [ $(git rev-parse --abbrev-ref HEAD) = "master" ]
then
netlify deploy --dir $(stack path --local-doc-root) --message "$GITHUB_REF-$GITHUB_SHA" --prod
else
netlify deploy --dir $(stack path --local-doc-root) --message "$GITHUB_REF-$GITHUB_SHA"
fi
fi