Skip to content

Update dependencies #175

Update dependencies

Update dependencies #175

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
pull_request:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Checkout crafting interpreters
uses: actions/checkout@v2
with:
repository: munificent/craftinginterpreters
path: temp-craftinginterpreters
- name: Copy craftinginterpreters tests
run: |
rm -rf src/test/resources/lox/book-tests
mkdir src/test/resources/lox/book-tests
cp -R temp-craftinginterpreters/test src/test/resources/lox/book-tests
rm -rf temp-craftinginterpreters
- uses: actions/setup-java@v1
with:
java-version: 11
- name: Lint
uses: gradle/[email protected]
with:
arguments: ktLintCheck --info
- name: Build
uses: gradle/[email protected]
with:
arguments: build jacocoTestReport --info
- name: jacoco-badge-generator
uses: cicirello/[email protected]
with:
jacoco-csv-file: build/reports/jacoco/test/jacocoTestReport.csv
- name: Update coverage bade
run: |
if [[ `git status --porcelain .github/badges` ]]; then
git config --global user.name 'James Hamilton'
git config --global user.email '[email protected]'
git add .github/badges/jacoco.svg
git commit -m "Update autogenerated JaCoCo coverage badge"
git push
fi
- name: Publish Unit Test Results
uses: EnricoMi/[email protected]
if: always()
with:
files: build/test-results/**/*.xml