Lock CI Nim ver and update to Nim 1.6.0.
This commit is contained in:
parent
a1601b4600
commit
f940f81861
2 changed files with 8 additions and 8 deletions
14
.github/workflows/main.yml
vendored
14
.github/workflows/main.yml
vendored
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
name: CI
|
name: CI
|
||||||
|
|
||||||
# Controls when the action will run.
|
# Controls when the action will run.
|
||||||
on:
|
on:
|
||||||
# Triggers the workflow on push or pull request events but only for the master branch
|
# Triggers the workflow on push or pull request events but only for the master branch
|
||||||
push:
|
push:
|
||||||
|
|
@ -21,13 +21,13 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
firefox: [ '73.0' ]
|
firefox: [ '73.0' ]
|
||||||
include:
|
include:
|
||||||
- nim-version: 'stable'
|
- nim-version: '1.6.0'
|
||||||
cache-key: 'stable'
|
cache-key: 'stable'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Checkout submodules
|
- name: Checkout submodules
|
||||||
run: git submodule update --init --recursive
|
run: git submodule update --init --recursive
|
||||||
|
|
||||||
- name: Setup firefox
|
- name: Setup firefox
|
||||||
uses: browser-actions/setup-firefox@latest
|
uses: browser-actions/setup-firefox@latest
|
||||||
with:
|
with:
|
||||||
|
|
@ -37,13 +37,13 @@ jobs:
|
||||||
id: get-date
|
id: get-date
|
||||||
run: echo "::set-output name=date::$(date "+%Y-%m-%d")"
|
run: echo "::set-output name=date::$(date "+%Y-%m-%d")"
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Cache choosenim
|
- name: Cache choosenim
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: ~/.choosenim
|
path: ~/.choosenim
|
||||||
key: ${{ runner.os }}-choosenim-${{ matrix.cache-key }}
|
key: ${{ runner.os }}-choosenim-${{ matrix.cache-key }}
|
||||||
|
|
||||||
- name: Cache nimble
|
- name: Cache nimble
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
|
|
@ -58,7 +58,7 @@ jobs:
|
||||||
mkdir geckodriver
|
mkdir geckodriver
|
||||||
tar -xzf geckodriver-v0.29.1-linux64.tar.gz -C geckodriver
|
tar -xzf geckodriver-v0.29.1-linux64.tar.gz -C geckodriver
|
||||||
export PATH=$PATH:$PWD/geckodriver
|
export PATH=$PATH:$PWD/geckodriver
|
||||||
|
|
||||||
- name: Install choosenim
|
- name: Install choosenim
|
||||||
run: |
|
run: |
|
||||||
export CHOOSENIM_CHOOSE_VERSION="${{ matrix.nim-version }}"
|
export CHOOSENIM_CHOOSE_VERSION="${{ matrix.nim-version }}"
|
||||||
|
|
@ -66,7 +66,7 @@ jobs:
|
||||||
sh init.sh -y
|
sh init.sh -y
|
||||||
export PATH=$HOME/.nimble/bin:$PATH
|
export PATH=$HOME/.nimble/bin:$PATH
|
||||||
nimble refresh -y
|
nimble refresh -y
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
export PATH=$HOME/.nimble/bin:$PATH
|
export PATH=$HOME/.nimble/bin:$PATH
|
||||||
|
|
|
||||||
|
|
@ -276,7 +276,7 @@ template createTFD() =
|
||||||
new(c)
|
new(c)
|
||||||
init(c)
|
init(c)
|
||||||
c.req = request
|
c.req = request
|
||||||
if request.cookies.len > 0:
|
if cookies(request).len > 0:
|
||||||
checkLoggedIn(c)
|
checkLoggedIn(c)
|
||||||
|
|
||||||
#[ DB functions. TODO: Move to another module? ]#
|
#[ DB functions. TODO: Move to another module? ]#
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue