Skip to content

Commit

Permalink
Consolidate github workflows, add nix build
Browse files Browse the repository at this point in the history
  • Loading branch information
jbboehr committed Nov 26, 2022
1 parent 01c0426 commit d41d619
Show file tree
Hide file tree
Showing 6 changed files with 102 additions and 117 deletions.
2 changes: 1 addition & 1 deletion .github/scripts/vars.sh
@@ -1,2 +1,2 @@
export PS4=' \e[33m$(date +"%H:%M:%S"): $BASH_SOURCE@$LINENO ${FUNCNAME[0]} -> \e[0m'
export LIBMUSTACHE_VERSION=89c7601c1cb93ed80b61e87f921f13fbc3ebd581
export LIBMUSTACHE_VERSION=230d5c885e156a9b4fe9f9690128fe400b55087c
100 changes: 100 additions & 0 deletions .github/workflows/ci.yml
@@ -0,0 +1,100 @@
name: ci

on:
push:
branches:
- master
- github-actions
- ci
pull_request:
branches:
- master

jobs:
linux:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
PHP_VERSION:
- "7.4"
- "8.0"
- "8.1"
- "8.2"
COVERAGE: ["true", "false"]
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: I am tired of writing this shit in YAML and learning a new DSL for every CI service so I'm putting everything in a FSCKING BASH SCRIPT
env:
PHP_VERSION: ${{ matrix.PHP_VERSION }}
COVERAGE: ${{ matrix.COVERAGE }}
run: bash ./.github/scripts/linux.sh
- name: Coveralls
if: ${{ matrix.COVERAGE == 'true' }}
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./coverage.info

docker:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
PHP_VERSION:
- "7.4"
- "8.0"
- "8.1"
- "8.2-rc"
DOCKER_NAME:
- "alpine"
- "debian"
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: I am tired of writing this shit in YAML and learning a new DSL for every CI service so I am putting everything in a FSCKING BASH SCRIPT
env:
PHP_VERSION: ${{ matrix.PHP_VERSION }}
DOCKER_NAME: ${{ matrix.DOCKER_NAME }}
run: bash ./.github/scripts/docker.sh

docker-fedora:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: I am tired of writing this shit in YAML and learning a new DSL for every CI service so I am putting everything in a FSCKING BASH SCRIPT
env:
DOCKER_NAME: fedora
TEST_PHP_EXECUTABLE: /usr/bin/php
run: bash ./.github/scripts/docker.sh

osx:
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
PHP_VERSION:
- "7.4"
- "8.0"
- "8.1"
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: I am tired of writing this shit in YAML and learning a new DSL for every CI service so I'm putting everything in a FSCKING BASH SCRIPT
env:
PHP_VERSION: ${{ matrix.PHP_VERSION }}
run: bash ./.github/scripts/osx.sh

nix:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v18
with:
nix_path: nixpkgs=channel:nixos-22.05
- run: nix-build
- run: nix-build nix/ci.nix
44 changes: 0 additions & 44 deletions .github/workflows/docker.yml

This file was deleted.

39 changes: 0 additions & 39 deletions .github/workflows/linux.yml

This file was deleted.

30 changes: 0 additions & 30 deletions .github/workflows/osx.yml

This file was deleted.

4 changes: 1 addition & 3 deletions README.md
@@ -1,8 +1,6 @@
# php-mustache

[![GitHub Linux Build Status](https://github.com/jbboehr/php-mustache/workflows/linux/badge.svg)](https://github.com/jbboehr/php-mustache/actions?query=workflow%3Alinux)
[![GitHub OSX Build Status](https://github.com/jbboehr/php-mustache/workflows/osx/badge.svg)](https://github.com/jbboehr/php-mustache/actions?query=workflow%3Aosx)
[![GitHub Docker Build Status](https://github.com/jbboehr/php-mustache/workflows/docker/badge.svg)](https://github.com/jbboehr/php-mustache/actions?query=workflow%3Adocker)
[![GitHub Build Status](https://github.com/jbboehr/php-mustache/workflows/ci/badge.svg)](https://github.com/jbboehr/php-mustache/actions?query=workflow%3Aci)
[![Coverage Status](https://coveralls.io/repos/jbboehr/php-mustache/badge.svg?branch=master&service=github)](https://coveralls.io/github/jbboehr/php-mustache?branch=master)
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat)](LICENSE.md)

Expand Down

0 comments on commit d41d619

Please sign in to comment.