Skip to content

Commit 2c6efe7

Browse files
committed
add CI workflow
1 parent f09c40e commit 2c6efe7

File tree

2 files changed

+51
-0
lines changed

2 files changed

+51
-0
lines changed

.github/workflows/ci.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [master]
6+
tags: ["*"]
7+
pull_request:
8+
9+
jobs:
10+
test:
11+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
version:
17+
- "1.0"
18+
- "1"
19+
- "nightly"
20+
os:
21+
- ubuntu-latest
22+
- macOS-latest
23+
- windows-latest
24+
arch:
25+
- x64
26+
steps:
27+
- uses: actions/checkout@v2
28+
- uses: julia-actions/setup-julia@v1
29+
with:
30+
version: ${{ matrix.version }}
31+
arch: ${{ matrix.arch }}
32+
- name: Cache artifacts
33+
uses: actions/cache@v1
34+
env:
35+
cache-name: cache-artifacts
36+
with:
37+
path: ~/.julia/artifacts
38+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
39+
restore-keys: |
40+
${{ runner.os }}-test-${{ env.cache-name }}-
41+
${{ runner.os }}-test-
42+
${{ runner.os }}-
43+
- uses: julia-actions/julia-buildpkg@latest
44+
- uses: julia-actions/julia-runtest@latest
45+
- uses: julia-actions/julia-processcoverage@v1
46+
- uses: codecov/codecov-action@v1
47+
with:
48+
file: ./lcov.info
49+
flags: unittests

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# StringViews
22

3+
[![CI](https://github.com/JuliaStrings/StringViews.jl/workflows/CI/badge.svg)](https://github.com/JuliaStrings/StringViews.jl/actions?query=workflow%3ACI)
4+
35
This Julia package implements a new type of `AbstractString`, a `StringView`,
46
that provides a string representation of any underlying array of bytes
57
(any `AbstractVector{UInt8}`), interpreted as UTF-8 encoded Unicode data.

0 commit comments

Comments
 (0)