diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c648a5b..5c0cb40 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,6 +6,12 @@ on: - release-* pull_request: types: [opened, synchronize, reopened] + +# needed to allow julia-actions/cache to delete old caches that it has created +permissions: + actions: write + contents: read + jobs: test: name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} @@ -13,7 +19,7 @@ jobs: strategy: fail-fast: false matrix: - # Since EnergyModelsCompliance doesn't have binary dependencies, + # Since EnergyModelsRenewableProducers doesn't have binary dependencies, # only test on a subset of possible platforms. include: - version: '1' # The latest point-release (Linux) @@ -22,28 +28,19 @@ jobs: - version: '1' # The latest point-release (Windows) os: windows-latest arch: x64 - - version: 'lts' # The long term stable version (Linux) + - version: 'lts' # lts os: ubuntu-latest arch: x64 - - version: 'lts' # The long term stable version (Windows) + - version: 'lts' # lts os: windows-latest arch: x64 steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - uses: julia-actions/setup-julia@v2 with: version: ${{ matrix.version }} arch: ${{ matrix.arch }} - - uses: actions/cache@v3 - env: - cache-name: cache-artifacts - with: - path: ~/.julia/artifacts - key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }} - restore-keys: | - ${{ runner.os }}-test-${{ env.cache-name }}- - ${{ runner.os }}-test- - ${{ runner.os }}- + - uses: julia-actions/cache@v3 - uses: julia-actions/julia-buildpkg@v1 - uses: julia-actions/julia-runtest@v1 with: diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 76aff3f..24fc6f3 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -5,14 +5,20 @@ on: tags: '*' pull_request: types: [opened, synchronize, reopened] + +# needed to allow julia-actions/cache to delete old caches that it has created +permissions: + actions: write + contents: read jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v6 - uses: julia-actions/setup-julia@latest with: version: '1' + - uses: julia-actions/cache@v3 - name: Install dependencies shell: julia --color=yes --project=docs/ {0} run: |