Skip to content

Commit 8ae664b

Browse files
committed
Merge branch 'series/1.x' into FileReaderSync
2 parents 23c4c43 + 256f329 commit 8ae664b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+51465
-243
lines changed

.github/pull_request_template.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Hi there!
2+
3+
Before submitting a PR containing any Scala changes, please make sure you...
4+
5+
* run `sbt prePR`
6+
* commit changes to `api-reports`
7+
8+
Thanks for contributing!

.github/release-drafter.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name-template: 'v$NEXT_PATCH_VERSION'
2+
tag-template: 'v$NEXT_PATCH_VERSION'
3+
template: |
4+
# What's Changed
5+
$CHANGES
6+
categories:
7+
- title: 'New'
8+
label: 'type: feature'
9+
- title: 'Bug Fixes'
10+
label: 'type: bug'
11+
- title: 'Maintenance'
12+
label: 'type: maintenance'
13+
- title: 'Documentation'
14+
label: 'type: docs'
15+
- title: 'Dependency Updates'
16+
label: 'type: dependencies'

.github/workflows/ci.yml

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
tags-ignore:
7+
- v*
8+
9+
jobs:
10+
11+
build:
12+
runs-on: ubuntu-latest
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
scalaversion: ["2.11.12", "2.12.10", "2.13.1"]
17+
scalajsversion: ["1.x", "0.6.x"]
18+
include:
19+
- scalaversion: "2.10.7"
20+
scalajsversion: "0.6.x"
21+
env:
22+
SCALAJS_VERSION: "${{ matrix.scalajsversion == '0.6.x' && '0.6.28' || '' }}"
23+
steps:
24+
25+
- uses: actions/checkout@v2
26+
27+
- name: Setup Scala
28+
uses: japgolly/[email protected]
29+
30+
- name: Hacks for Scala 2.10
31+
if: matrix.scalaversion == '2.10.7'
32+
run: ./prepareForScala210.sh
33+
34+
- name: Build
35+
run: sbt "++${{ matrix.scalaversion }}" package
36+
37+
- name: Test generate documentation
38+
run: sbt "++${{ matrix.scalaversion }}" doc
39+
40+
- name: Build examples
41+
run: sbt "++${{ matrix.scalaversion }}" example/compile
42+
43+
- name: Validate formatting
44+
run: sbt "++${{ matrix.scalaversion }}" scalafmtCheck
45+
46+
- name: Validate api report
47+
if: matrix.scalajsversion == '1.x' && matrix.scalaversion != '2.11.12'
48+
run: ./api-reports/validate "${{ matrix.scalaversion }}"
49+
50+
readme:
51+
runs-on: ubuntu-latest
52+
steps:
53+
- uses: actions/checkout@v2
54+
- uses: japgolly/[email protected]
55+
- name: Readme generation
56+
run: sbt readme/run

.github/workflows/ghpages.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
2+
name: Build and Deploy GhPages docs
3+
4+
on:
5+
push:
6+
branches:
7+
- master
8+
9+
jobs:
10+
build-and-deploy:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
- name: Setup Scala
16+
uses: japgolly/[email protected]
17+
18+
- name: Build
19+
run: sbt readme/run
20+
21+
- name: Deploy
22+
uses: JamesIves/[email protected]
23+
with:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
BRANCH: gh-pages
26+
FOLDER: readme/target/scalatex

.github/workflows/release-drafter.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Release Drafter
2+
3+
on:
4+
push:
5+
# branches to consider in the event; optional, defaults to all
6+
branches:
7+
- master
8+
9+
jobs:
10+
update_release_draft:
11+
runs-on: ubuntu-latest
12+
steps:
13+
# Drafts your next Release notes as Pull Requests are merged into "master"
14+
- uses: release-drafter/release-drafter@v5
15+
env:
16+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Release
2+
on:
3+
push:
4+
branches: ["master", "series/1.x"]
5+
tags: ["v*"]
6+
jobs:
7+
publish:
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
scalajsversion: ["1.x", "0.6.x"]
12+
env:
13+
SCALAJS_VERSION: "${{ matrix.scalajsversion == '0.6.x' && '0.6.28' || '' }}"
14+
steps:
15+
16+
- uses: actions/checkout@v2
17+
with:
18+
fetch-depth: 0
19+
20+
- name: Setup Scala
21+
uses: japgolly/[email protected]
22+
23+
- name: Hacks for Scala 2.10
24+
run: ./prepareForScala210.sh
25+
26+
- name: Release
27+
run: sbt ci-release
28+
env:
29+
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
30+
PGP_SECRET: ${{ secrets.PGP_SECRET }}
31+
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
32+
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}

.gitignore

+9-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
1-
target/
1+
.bloop
2+
.bsp
23
.cache
34
.classpath
5+
.idea
6+
.idea_modules
7+
.metals
48
.project
9+
.sbtboot
510
.settings/
6-
.idea
7-
.idea_modules
11+
.vscode
12+
metals.sbt
13+
target/

.scalafix.conf

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
rules = [
2+
GenerateApiReport,
3+
]

.travis.yml

-33
This file was deleted.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
[Documentation](http://scala-js.github.io/scala-js-dom)
1+
[Documentation](http://scala-js.github.io/scala-js-dom) / [Scaladoc](https://javadoc.io/doc/org.scala-js/scalajs-dom_sjs1_2.13)

0 commit comments

Comments
 (0)