Skip to content

Commit

Permalink
Merge pull request #19 from guardian/rk/add-ci
Browse files Browse the repository at this point in the history
Add GitHub workflow to compile & test
  • Loading branch information
kenoir authored Jun 5, 2023
2 parents 3859ddd + cdff478 commit 240fde9
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: compile-test

on:
workflow_dispatch:
push:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Setup Java 8
uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'adopt'
- run: sbt test
6 changes: 3 additions & 3 deletions src/test/scala/com/gu/hmac/HMACHeadersTest.scala
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package com.gu.hmac

import java.net.URI

import org.joda.time.DateTime
import org.scalatest.{FlatSpec, Matchers}
import org.scalatest.matchers.should.Matchers
import org.scalatest.flatspec.AnyFlatSpec

class HMACHeadersTest extends FlatSpec with Matchers {
class HMACHeadersTest extends AnyFlatSpec with Matchers {
import HMACDate.DateTimeOps
val hmacHeader = new HMACHeaders {
override def secret = "secret"
Expand Down

0 comments on commit 240fde9

Please sign in to comment.