Skip to content

Commit

Permalink
wip: Playing with github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ericfreese committed May 26, 2023
1 parent 77b9916 commit 91fd8fe
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 15 deletions.
15 changes: 0 additions & 15 deletions .circleci/config.yml

This file was deleted.

31 changes: 31 additions & 0 deletions .github/workflows/integration.yml
@@ -0,0 +1,31 @@
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
IMAGE_CACHE_PATH: /tmp/.image-cache
IMAGE_CACHE_NAME: zsh-autosuggestions-test
jobs:
# Load the ZSH_VERSIONS file as a JSON array to use as a matrix
# See https://stackoverflow.com/a/62953566/154703
versions:
runs-on: ubuntu-22.04
outputs:
versions: ${{ steps.set-versions.outputs.versions }}
steps:
- id: set-versions
run: |
echo "versions=$(
grep "^[^#]" ZSH_VERSIONS \
| sed -E 's/(^|$)/"/g' \
| paste -sd ',' - \
| sed -e 's/^/[/' -e 's/$/]/'
)" >> $GITHUB_OUTPUT
test:
needs: versions
runs-on: ubuntu-22.04
strategy:
matrix:
version: ${{ fromJson(needs.versions.outputs.versions) }}
steps:
- run: echo ${{ matrix.version }}

0 comments on commit 91fd8fe

Please sign in to comment.