summaryrefslogtreecommitdiffstats
path: root/.github/actions/pre-test/action.yml
blob: 42bbf00b52d50eb0af5dd30cb8012cb1fe86a17a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
inputs:
  env:
    default: ${{ matrix.env }}

runs:
  using: composite
  steps:
  - name: setup (windows)
    shell: bash
    if: runner.os == 'Windows'
    run: |
      set -x

      echo 'TEMP=C:\TEMP' >> "$GITHUB_ENV"

      echo "$CONDA\Scripts" >> "$GITHUB_PATH"

      echo 'C:\Strawberry\perl\bin' >> "$GITHUB_PATH"
      echo 'C:\Strawberry\perl\site\bin' >> "$GITHUB_PATH"
      echo 'C:\Strawberry\c\bin' >> "$GITHUB_PATH"

      testing/get-coursier.sh
      testing/get-dart.sh
  - name: setup (linux)
    shell: bash
    if: runner.os == 'Linux'
    run: |
      set -x

      sudo apt-get update
      sudo apt-get install -y --no-install-recommends \
        lua5.3 \
        liblua5.3-dev \
        luarocks

      testing/get-coursier.sh
      testing/get-dart.sh
      testing/get-swift.sh
  - uses: asottile/workflows/.github/actions/latest-git@v1.4.0
    if: inputs.env == 'py38' && runner.os == 'Linux'