Skip to content

remove force publish #24

remove force publish

remove force publish #24

Workflow file for this run

name: CI
on:
push:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: corretto
java-version: 21
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v44
with:
files_yaml: |
core:
- 000-core/**
- name: Install Act dependencies for local testing
if: ${{ env.ACT }}
run: |
sudo apt-get update
sudo apt-get install apt-transport-https curl gnupg -yqq
echo "deb https://repo.scala-sbt.org/scalasbt/debian all main" | sudo tee /etc/apt/sources.list.d/sbt.list
echo "deb https://repo.scala-sbt.org/scalasbt/debian /" | sudo tee /etc/apt/sources.list.d/sbt_old.list
curl -sL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x2EE0EA64E40A89B84B2DF73499E82A75642AC823" | sudo -H gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/scalasbt-release.gpg --import
sudo chmod 644 /etc/apt/trusted.gpg.d/scalasbt-release.gpg
sudo apt-get update
sudo apt-get install sbt
- name: Publish - 000-core
if: steps.changed-files.outputs.core_any_changed == 'true'
run: sbt -v publish
working-directory: 000-core
- name: Build and Test - 001-wc
run: sbt -v test IntegrationTest/test
working-directory: 001-wc
- name: Build and Test - 004-cut
run: sbt -v test IntegrationTest/test
working-directory: 004-cut
- name: Integration Test # TODO don't hardcode paths
run: |
cut="./004-cut/target/scala-2.13/cut"
test_csv="./004-cut/integration/src/test/resources/fourchords.csv"
wc="./001-wc/target/scala-2.13/ccwc"
$cut -f 2 -d , $test_csv | uniq | $wc -l | grep 155