Skip to content

Add typo with custom types #204

Add typo with custom types

Add typo with custom types #204

Workflow file for this run

name: Create preview environment
on:
pull_request:
branches: [ master ]
push:
branches: [ master, scala3 ]
concurrency:
# The preview script can't handle concurrent deploys
group: codepreview
cancel-in-progress: false
# TODO: Define minimal permissions, I haven't found which one is necessary to allow writing comments on commits
# see https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
#permissions:
# contents: read # for checkout
jobs:
preview:
runs-on: ubuntu-latest
steps:
- name: Install ansible
run: python3 -m pip install --user ansible
- uses: coursier/cache-action@v6
- uses: VirtusLab/scala-cli-setup@main
- name: checkout
uses: actions/checkout@v2
- name: Setup Scala
uses: japgolly/[email protected]
with:
java-version: 'adopt:1.11.0-11'
node-version: '16.7.0'
- name: Cache compiled code
uses: actions/cache@v3
with:
path: |
**/target/
/home/runner/.ivy2/local
key: compiled-code-preview-cache-${{ hashFiles('**/build.sbt') }}
restore-keys: compiled-code-preview-cache-
- name: Compile
run: sbt compile
- name: Create SSH key
run: |
mkdir -p ~/.ssh/
echo "$CODEPREVIEW_PRIVATE_KEY" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
echo "StrictHostKeyChecking=no" > ~/.ssh/config
shell: bash
env:
CODEPREVIEW_PRIVATE_KEY: ${{ secrets.CODEPREVIEW_PRIVATE_KEY }}
- name: Create codepreview scripts
run: |
rm -rf ./infra
curl -u "github:$CODEPREVIEW_TOKEN" -O https://sssppa.wiringbits.dev/sssppa.zip
unzip sssppa.zip -d .
chmod +x ./infra/scripts/*.sh
shell: bash
env:
CODEPREVIEW_TOKEN: ${{ secrets.CODEPREVIEW_TOKEN }}
- name: Create preview env
run: cd infra && ./scripts/deploy-preview.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_NUMBER: ${{ github.event.number }}