Skip to content

Commit

Permalink
Update Github Actions to node20
Browse files Browse the repository at this point in the history
Also ensure CI only runs on pushes to main and tags.
  • Loading branch information
jackkoenig committed Nov 20, 2023
1 parent 4f776e0 commit 5a05190
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/template-cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ jobs:
steps:

- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Cleanup
run: |
Expand Down Expand Up @@ -49,7 +51,7 @@ jobs:
git commit -m "Template cleanup"
- name: Push changes
uses: ad-m/github-push-action@v0.6.0
uses: ad-m/github-push-action@v0.8.0
with:
branch: main
github_token: ${{ secrets.GITHUB_TOKEN }}
21 changes: 11 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,27 @@
name: Continuous Integration

on: [push, pull_request]
on:
push:
tags: ['*']
branches: ['main']
pull_request:

jobs:
ci:
name: ci
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Cleanup
run: sed -i "s/%NAME%/test/g" build.sc
- name: Cache Scala
uses: coursier/cache-action@v6
- name: Setup Scala
uses: olafurpg/setup-scala@v10
with:
java-version: [email protected]
- name: Setup Mill
uses: jodersky/[email protected]
uses: coursier/setup-action@v1
with:
mill-version: 0.9.7
- name: Cache Scala
uses: coursier/cache-action@v5
jvm: adopt:11
apps: sbt mill
- name: SBT Test
run: sbt test
- name: mill Test
Expand Down

0 comments on commit 5a05190

Please sign in to comment.