Skip to content

Commit

Permalink
workflows: test on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
kornrunner committed Aug 11, 2021
1 parent b063665 commit c22f0e9
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 2 deletions.
34 changes: 33 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ on: [push, pull_request]

jobs:

phpunit:
linux:
name: Test on Linux
runs-on: ubuntu-18.04
strategy:
fail-fast: false
Expand All @@ -22,6 +23,37 @@ jobs:
- run: composer install --no-progress
- run: php${{ matrix.php-version }} vendor/bin/phpunit

windows:
name: Test on Windows
defaults:
run:
shell: cmd
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
php-version: ['7.3', '7.4', '8.0', '8.1']
arch: [x64]
ts: [nts]

steps:
- name: Setup PHP
id: setup-php
uses: cmb69/setup-php-sdk@v0.1
with:
version: ${{matrix.php-version}}
arch: ${{matrix.arch}}
ts: ${{matrix.ts}}
- uses: actions/checkout@v2
with:
fetch-depth: 1

- run: php -v
- run: php -m
- run: composer -V
- run: composer install --no-progress
- run: php vendor/bin/phpunit

code_coverage:
name: Code Coverage
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# php-keccak [![Build status](https://ci.appveyor.com/api/projects/status/48isd8g6gov29wba/branch/master?svg=true)](https://ci.appveyor.com/project/kornrunner/php-keccak/branch/master) [![Coverage Status](https://coveralls.io/repos/github/kornrunner/php-keccak/badge.svg?branch=master)](https://coveralls.io/github/kornrunner/php-keccak?branch=master) [![Latest Stable Version](https://poser.pugx.org/kornrunner/keccak/v/stable)](https://packagist.org/packages/kornrunner/keccak)
# php-keccak [![Tests](https://github.com/kornrunner/php-keccak/actions/workflows/tests.yml/badge.svg?branch=master)](https://github.com/kornrunner/php-keccak/actions/workflows/tests.yml) [![Coverage Status](https://coveralls.io/repos/github/kornrunner/php-keccak/badge.svg?branch=master)](https://coveralls.io/github/kornrunner/php-keccak?branch=master) [![Latest Stable Version](https://poser.pugx.org/kornrunner/keccak/v/stable)](https://packagist.org/packages/kornrunner/keccak)
Pure PHP implementation of Keccak (SHA-3)

## Usage
Expand Down

0 comments on commit c22f0e9

Please sign in to comment.