|
1 | 1 | name: CI |
2 | 2 | on: |
3 | 3 | - push |
4 | | - - pull_request |
| 4 | + #- pull_request |
5 | 5 | - release |
6 | 6 | jobs: |
7 | | - test: |
8 | | - name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} |
9 | | - runs-on: ${{ matrix.os }} |
10 | | - strategy: |
11 | | - matrix: |
12 | | - version: |
13 | | - - '1.6' |
14 | | - - '1' |
15 | | - - 'nightly' |
16 | | - os: |
17 | | - - ubuntu-latest |
18 | | - - macOS-latest |
19 | | - - windows-latest |
20 | | - arch: |
21 | | - - x64 |
22 | | - fail-fast: false |
23 | | - steps: |
24 | | - - uses: actions/checkout@v2 |
25 | | - - uses: julia-actions/setup-julia@v1 |
26 | | - with: |
27 | | - version: ${{ matrix.version }} |
28 | | - arch: ${{ matrix.arch }} |
29 | | - - uses: actions/cache@v1 |
30 | | - env: |
31 | | - cache-name: cache-artifacts |
32 | | - with: |
33 | | - path: ~/.julia/artifacts |
34 | | - key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }} |
35 | | - restore-keys: | |
36 | | - ${{ runner.os }}-test-${{ env.cache-name }}- |
37 | | - ${{ runner.os }}-test- |
38 | | - ${{ runner.os }}- |
39 | | - - uses: julia-actions/julia-buildpkg@latest |
40 | | - - uses: julia-actions/julia-runtest@latest |
41 | | - - uses: julia-actions/julia-processcoverage@v1 |
42 | | - - uses: codecov/codecov-action@v1 |
43 | | - with: |
44 | | - file: lcov.info |
45 | | - env: |
46 | | - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |
47 | | - # don't run ci twice on my own PRs |
48 | | - if: ${{ !(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) }} |
49 | | - |
50 | | - docs: |
51 | | - name: Documentation |
| 7 | + foo: |
52 | 8 | runs-on: ubuntu-latest |
53 | 9 | steps: |
54 | | - - uses: actions/checkout@v2 |
55 | | - - uses: julia-actions/setup-julia@v1 |
56 | | - with: |
57 | | - version: '1' |
58 | 10 | - run: | |
59 | | - julia --project=docs -e ' |
60 | | - using Pkg |
61 | | - Pkg.instantiate()' |
62 | | - - run: julia --project=docs docs/make.jl |
| 11 | + echo bar > foo |
| 12 | + export out=$(gh gist create foo) |
| 13 | + gh gist delete $(echo $out | tail -n1) |
63 | 14 | env: |
64 | | - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
65 | | - DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} |
66 | | - # don't run ci twice on my own PRs |
67 | | - if: ${{ !(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) }} |
| 15 | + GITHUB_TOKEN: ${{ secrets.GIST_TESTING_TOKEN }} |
| 16 | + # test: |
| 17 | + # name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} |
| 18 | + # runs-on: ${{ matrix.os }} |
| 19 | + # strategy: |
| 20 | + # matrix: |
| 21 | + # version: |
| 22 | + # - '1.6' |
| 23 | + # - '1' |
| 24 | + # - 'nightly' |
| 25 | + # os: |
| 26 | + # - ubuntu-latest |
| 27 | + # - macOS-latest |
| 28 | + # - windows-latest |
| 29 | + # arch: |
| 30 | + # - x64 |
| 31 | + # fail-fast: false |
| 32 | + # steps: |
| 33 | + # - uses: actions/checkout@v2 |
| 34 | + # - uses: julia-actions/setup-julia@v1 |
| 35 | + # with: |
| 36 | + # version: ${{ matrix.version }} |
| 37 | + # arch: ${{ matrix.arch }} |
| 38 | + # - uses: actions/cache@v1 |
| 39 | + # env: |
| 40 | + # cache-name: cache-artifacts |
| 41 | + # with: |
| 42 | + # path: ~/.julia/artifacts |
| 43 | + # key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }} |
| 44 | + # restore-keys: | |
| 45 | + # ${{ runner.os }}-test-${{ env.cache-name }}- |
| 46 | + # ${{ runner.os }}-test- |
| 47 | + # ${{ runner.os }}- |
| 48 | + # - uses: julia-actions/julia-buildpkg@latest |
| 49 | + # - uses: julia-actions/julia-runtest@latest |
| 50 | + # - uses: julia-actions/julia-processcoverage@v1 |
| 51 | + # - uses: codecov/codecov-action@v1 |
| 52 | + # with: |
| 53 | + # file: lcov.info |
| 54 | + # env: |
| 55 | + # CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |
| 56 | + # # don't run ci twice on my own PRs |
| 57 | + # if: ${{ !(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) }} |
| 58 | + # |
| 59 | + # docs: |
| 60 | + # name: Documentation |
| 61 | + # runs-on: ubuntu-latest |
| 62 | + # steps: |
| 63 | + # - uses: actions/checkout@v2 |
| 64 | + # - uses: julia-actions/setup-julia@v1 |
| 65 | + # with: |
| 66 | + # version: '1' |
| 67 | + # - run: | |
| 68 | + # julia --project=docs -e ' |
| 69 | + # using Pkg |
| 70 | + # Pkg.instantiate()' |
| 71 | + # - run: julia --project=docs docs/make.jl |
| 72 | + # env: |
| 73 | + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 74 | + # DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} |
| 75 | + # # don't run ci twice on my own PRs |
| 76 | + # if: ${{ !(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) }} |
0 commit comments