Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] add command to convert inputs to new format #8

Merged
merged 3 commits into from
May 2, 2023

Conversation

rpetit3
Copy link
Contributor

@rpetit3 rpetit3 commented May 2, 2023

yo! This is totally a work in progress and there will be things to work through, but this was what I was thinking. Figured best to get it here so you could suggest/comment.

Here's an example using the Travis CI yaml from Snippy

wget -O snippy-travis.yml https://github.com/tseemann/snippy/raw/master/.travis.yml
write-the convert snippy-travis.yml --input-format "Travis CI YAML" --output-format "Github Actions YAML"
Converted Output:
```plaintext
name: CI

on: [push]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - name: Set up environment
      run: |
        export PATH=$PWD/bin:$PWD/binaries/noarch:$PWD/binaries/linux:$PATH
        apt-get update
        apt-get install -y libstdc++6 liblzma5 libbz2-1.0 bioperl
    - name: Check libraries
      run: |
        ! (ldd $PWD/binaries/linux/freebayes | grep 'not found')
        ! (ldd $PWD/binaries/linux/vcfuniq   | grep 'not found')
        ! (ldd $PWD/binaries/linux/samtools  | grep 'not found')
        ! (ldd $PWD/binaries/linux/bcftools  | grep 'not found')
    - name: Check versions
      run: |
        snippy --version
        snippy --check
        snippy-core --version
        snippy-core --check
    - name: Test
      run: make -C test

Would need to do some testing on my end, but first glance it looks like a functional GitHub Action yaml.

@Wytamma Wytamma merged commit 1fc76e5 into Wytamma:master May 2, 2023
@rpetit3 rpetit3 deleted the rp3-add-convert branch May 2, 2023 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants