Skip to content

Commit

Permalink
GitHub Actions (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
oradwell authored Dec 14, 2022
1 parent 0e3e712 commit 86e6eca
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 38 deletions.
37 changes: 0 additions & 37 deletions .circleci/config.yml

This file was deleted.

38 changes: 38 additions & 0 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Build

on:
push:
branches: [ master ]
pull_request:

permissions:
contents: read

jobs:
build:
name: Build
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "7.1"
coverage: none
- name: Prepare composer cache
id: composer-cache
run: |
COMPOSER_CACHE_DIR=$(composer config cache-files-dir)
mkdir -p ${COMPOSER_CACHE_DIR}
echo "dir=${COMPOSER_CACHE_DIR}" >> ${GITHUB_OUTPUT}
- name: Cache dependencies
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-
- name: Install dependencies
run: composer install --no-interaction
- name: Run PHPUnit
run: vendor/bin/phpunit
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Lemmatizer

[![Circle CI](https://circleci.com/gh/writecrow/lemmatizer.svg?style=shield)](https://circleci.com/gh/writecrow/lemmatizer)
[![Build](https://github.com/AmaraLiving/lemmatizer/actions/workflows/ci-build.yml/badge.svg)](https://github.com/AmaraLiving/lemmatizer/actions/workflows/ci-build.yml)

A PHP library for getting a lemma from a given word, and getting a list of words
that map to a lemma. This does NOT support part of speech specification.
Expand Down

0 comments on commit 86e6eca

Please sign in to comment.