Automated release workflow with AI-generated release notes #18
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Tests | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 | |
| - name: Set up OCaml | |
| uses: ocaml/setup-ocaml@e32b06a3e831ff2fbc6f08cf35be2085e3918014 # v3.6.1 | |
| with: | |
| ocaml-compiler: 5.1.1 | |
| dune-cache: true | |
| opam-repositories: | | |
| default: https://github.com/ocaml/opam-repository.git | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y npm xz-utils libomp-dev llvm-dev | |
| opam install . --deps-only --update-invariant | |
| npm install --no-save typescript browserify pug-lexer pug-parser pug-walk | |
| - name: Cache QuickJS | |
| id: cache-quickjs | |
| uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 | |
| with: | |
| path: quickjs | |
| key: quickjs-2021-03-27-${{ runner.os }} | |
| - name: Install QuickJS | |
| if: steps.cache-quickjs.outputs.cache-hit != 'true' | |
| run: | | |
| curl -fsSL https://bellard.org/quickjs/quickjs-2021-03-27.tar.xz -o quickjs.tar.xz | |
| tar xvf quickjs.tar.xz && rm quickjs.tar.xz | |
| mv quickjs-2021-03-27 quickjs | |
| cd quickjs && make | |
| - name: Cache Flow | |
| id: cache-flow | |
| uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 | |
| with: | |
| path: flow | |
| key: flow-v0.183.1 | |
| - name: Install Flow | |
| run: | | |
| if [ ! -d flow ]; then | |
| git clone --branch v0.183.1 --depth 1 https://github.com/facebook/flow.git flow | |
| fi | |
| ln -s "$(pwd)/flow/src/parser" src/flow_parser | |
| ln -s "$(pwd)/flow/src/third-party/sedlex" src/sedlex | |
| ln -s "$(pwd)/flow/src/hack_forked/utils/collections" src/collections | |
| - name: Run tests | |
| run: | | |
| mkdir -p strings | |
| opam exec -- dune runtest tests/ |