Migrate from CircleCI to GitHub Actions (#20)
This commit is contained in:
parent
0a382e45fb
commit
94cc47fa97
2 changed files with 76 additions and 58 deletions
|
@ -1,58 +0,0 @@
|
|||
version: 2
|
||||
jobs:
|
||||
php:
|
||||
working_directory: ~/qr
|
||||
docker:
|
||||
- image: circleci/php:7
|
||||
steps:
|
||||
- checkout:
|
||||
path: ~/qr
|
||||
- run: composer install
|
||||
- run: ./vendor/bin/phpunit php/tests
|
||||
node:
|
||||
working_directory: ~/qr/node
|
||||
docker:
|
||||
- image: circleci/node:16
|
||||
steps:
|
||||
- checkout:
|
||||
path: ~/qr
|
||||
- run: yarn
|
||||
- run: yarn test
|
||||
jvm:
|
||||
working_directory: ~/qr/jvm
|
||||
docker:
|
||||
- image: circleci/openjdk:11
|
||||
steps:
|
||||
- checkout:
|
||||
path: ~/qr
|
||||
- run: ./gradlew check jacocoTestReport
|
||||
- store_test_results:
|
||||
path: ./build/test-results
|
||||
dart:
|
||||
working_directory: ~/qr/dart
|
||||
docker:
|
||||
- image: google/dart:2.10-dev
|
||||
steps:
|
||||
- checkout:
|
||||
path: ~/qr
|
||||
- run: pub get
|
||||
- run: pub run test
|
||||
dotnet:
|
||||
working_directory: ~/qr/dotnet
|
||||
docker:
|
||||
- image: mcr.microsoft.com/dotnet/core/sdk:3.1
|
||||
steps:
|
||||
- checkout:
|
||||
path: ~/qr
|
||||
- run: dotnet restore
|
||||
- run: dotnet test
|
||||
|
||||
workflows:
|
||||
version: 2
|
||||
test:
|
||||
jobs:
|
||||
- php
|
||||
- node
|
||||
- jvm
|
||||
- dart
|
||||
- dotnet
|
76
.github/workflows/builder.yml
vendored
Normal file
76
.github/workflows/builder.yml
vendored
Normal file
|
@ -0,0 +1,76 @@
|
|||
name: Wulkanowy QR Builder
|
||||
on: push
|
||||
jobs:
|
||||
php:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout the code
|
||||
uses: actions/checkout@v3
|
||||
- name: Setup PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: '7.4'
|
||||
- name: Install PHP dependencies
|
||||
run: composer install
|
||||
- name: Run PHP tests
|
||||
run: ./vendor/bin/phpunit php/tests
|
||||
node:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout the code
|
||||
uses: actions/checkout@v3
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: '19'
|
||||
- name: Install Node.js dependencies using Yarn
|
||||
working-directory: ./node
|
||||
run: yarn install
|
||||
- name: Run Node.js tests
|
||||
working-directory: ./node
|
||||
run: yarn test
|
||||
jvm:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout the code
|
||||
uses: actions/checkout@v3
|
||||
- name: Setup Java
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
distribution: 'zulu'
|
||||
java-version: '11'
|
||||
- name: Run JVM tests
|
||||
working-directory: ./jvm
|
||||
run: ./gradlew check jacocoTestReport
|
||||
- name: Store the test results
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: test-results
|
||||
path: ./build/test-results
|
||||
dart:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout the code
|
||||
uses: actions/checkout@v3
|
||||
- name: Setup Dart
|
||||
uses: dart-lang/setup-dart@v1.3
|
||||
with:
|
||||
sdk: '2.10.0'
|
||||
- name: Install Dart dependencies
|
||||
working-directory: ./dart
|
||||
run: pub get
|
||||
- name: Run Dart tests
|
||||
working-directory: ./dart
|
||||
run: pub run test
|
||||
dotnet:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout the code
|
||||
uses: actions/checkout@v3
|
||||
- name: Setup .NET
|
||||
uses: actions/setup-dotnet@v3
|
||||
with:
|
||||
dotnet-version: '3.1.407'
|
||||
- name: Run .NET tests
|
||||
working-directory: ./dotnet
|
||||
run: dotnet test
|
Loading…
Reference in a new issue