Skip to content

Commit c0c0b75

Browse files
Initial commit
0 parents  commit c0c0b75

File tree

8 files changed

+83
-0
lines changed

8 files changed

+83
-0
lines changed

.github/dependabot.yml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 2
2+
updates:
3+
4+
- package-ecosystem: "github-actions"
5+
directory: "/"
6+
schedule:
7+
interval: "daily"

.github/workflows/ci.yml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: CI
2+
on:
3+
push:
4+
branches:
5+
- main
6+
tags:
7+
- "v*"
8+
pull_request:
9+
10+
jobs:
11+
test:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
with:
16+
fetch-depth: 0
17+
- uses: coursier/[email protected]
18+
- uses: coursier/[email protected]
19+
with:
20+
jvm: temurin:17
21+
- name: Test
22+
run: ./scala-cli test . --cross
23+
24+
publish:
25+
needs: test
26+
if: github.event_name == 'push'
27+
runs-on: ubuntu-latest
28+
steps:
29+
- uses: actions/checkout@v3
30+
with:
31+
fetch-depth: 0
32+
- uses: coursier/[email protected]
33+
- uses: coursier/[email protected]
34+
with:
35+
jvm: temurin:17
36+
- name: Release
37+
run: ./scala-cli publish . --cross
38+
env:
39+
PUBLISH_USER: ${{ secrets.PUBLISH_USER }}
40+
PUBLISH_PASSWORD: ${{ secrets.PUBLISH_PASSWORD }}
41+
PUBLISH_SECRET_KEY: ${{ secrets.PUBLISH_SECRET_KEY }}
42+
PUBLISH_SECRET_KEY_PASSWORD: ${{ secrets.PUBLISH_SECRET_KEY_PASSWORD }}

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/.bsp/
2+
/.scala-build/

DefaultWorkflow.scala

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
package scala.cli.workflows
2+
3+
object DefaultWorkflow

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
*default-workflow*
2+
3+
This repository's workflow is (about to be) used by the "publish setup"
4+
command of [Scala CLI](https://github.com/VirtusLab/scala-cli).
5+
6+
The purpose of this repository is to benefit from dependabot updates for
7+
this default workflow, so that it's kept up-to-date.

publish-conf.scala

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
//> using publish.organization "io.github.alexarchambault.scala-cli.workflow"
2+
//> using publish.name "workflow"
3+
//> using publish.computeVersion "git:tag"
4+
//> using publish.repository "central-s01"
5+
//> using publish.user "env:PUBLISH_USER"
6+
//> using publish.password "env:PUBLISH_PASSWORD"
7+
//> using publish.secretKey "env:PUBLISH_SECRET_KEY"
8+
//> using publish.secretKeyPassword "env:PUBLISH_SECRET_KEY_PASSWORD"
9+
//> using publish.license "Apache-2.0"
10+
//> using publish.url "https://github.com/scala-cli/default-workflow"
11+
//> using publish.versionControl "github:scala-cli/default-workflow"
12+
//> using publish.developer "alexarchambault|Alex Archambault|https://github.com/alexarchambault"

scala-cli

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
set -e
3+
SC_EXEC="$(cs get "https://github.com/scala-cli/no-crc32-zip-input-stream/releases/download/scala-cli-launcher/scala-cli-x86_64-pc-linux-v2.gz" --archive)"
4+
chmod +x "$SC_EXEC"
5+
exec "$SC_EXEC" "$@"

test/DefaultWorkflowTests.scala

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
//> using lib "org.scalameta::munit:0.7.29"
2+
3+
package scala.cli.workflows.test
4+
5+
class DefaultWorkflowTests extends munit.FunSuite

0 commit comments

Comments
 (0)