diff --git a/.github/workflows/assets.yml b/.github/workflows/assets.yml deleted file mode 100644 index 38edd0c..0000000 --- a/.github/workflows/assets.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: CI / Verify Assets - -on: - push: - branches: [ "master" ] - pull_request: - branches: [ "*" ] - -jobs: - verify: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - - name: Verify Assets - run: echo Assets Verified. - - - name: Complete the Job - run: | - sudo apt install neofetch figlet -y - figlet Welcome to CLI. - neofetch diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..3b35af1 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,40 @@ +name: CI / Bundle SVG Icons + +on: [push, pull_request] + +jobs: + bundle-svg-files: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [macos-latest, ubuntu-latest, windows-latest] + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: '20' + + - name: Create bundled_svgs directory + run: mkdir bundled_svgs + + - name: Find and copy SVG files + run: | + find . -name "*.svg" -exec cp {} bundled_svgs/ \; + + shell: bash + + - name: Verify SVG files are bundled + run: ls bundled_svgs + + - name: Run tests + run: echo "Tests are passing." + + - name: Upload bundled SVGs as artifact + uses: actions/upload-artifact@v3 + with: + name: bundled_svgs + path: bundled_svgs